如何使用 AppleScript 将打开的 TextMate 文档的内容复制到剪贴板?
我需要使用 AppleScript 将打开的 TextMate 文档的内容复制到剪贴板。有什么想法吗?或者也许有一个不使用 AppleScript 但以编程方式完成相同任务的解决方案的想法?
I need to copy the contents of an open TextMate document to the clipboard with AppleScript. Any ideas? Or perhaps an idea for a solution that doesn't use AppleScript but accomplishes the same thing programmatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为当前文档的内容会有一个像
TM_CURRENT_LINE
这样的环境变量,但是 显然不是。I thought there'd be an environment variable like
TM_CURRENT_LINE
for the contents of the current document, but apparently not.