Mac OS X 在Finder新建文本文件
Automator 新建一个 Applicationhttps://pic1.zhimg.com/78ce627667e5b8c7ab1bcff125e19968_b.png
添加一个动作 "Run AppleScript"
https://pic2.zhimg.com/b1931d5f1328d30559719088c9faffb1_b.png
代码如下
on run {input, parameters}
tell application "Finder"
set selection to make new file at (get insertion location)
end tell
return input
end run
保存到 "应用程序"文件夹, 名字姑且叫 "New File.app" 吧.
Finder 工具栏右键, 自定义, 然后把 New File.app 拖上去, 大功告成,
https://pic1.zhimg.com/37e5280342c09c90f09f880d84ef1250_b.png
需要时候点击一下, 即可在当前文件夹生成一个空文件.
页:
[1]