ITeye博客

Apple&Mac

共 1 篇文章

为Finder Toolbar 添加 OpenInTextMate

TextMate作为Mac coder 最常用的 开发工具之一,当我们想用 TextMate打开当前所在目录或当前选中的文件时,如果希望可以快捷操作的话,除了可以自己使用快捷键外,还可以通过自定义 Finder Toolbar 为其添加一个 Open in textmate 的 button。效果图如下: 其原理是通过获取当前选中的文件或当前所在目录,然后将其具体路径在作为open 参数传递给 textmate。以下是 AppleScript的实现: -- Opens the currently selected Finder files, or else the current Finde…

2011-04-19 02:03 · Apple&Mac · ITeye