Automator 新建一個 Application
添加一個動作 "Run AppleScript"
代碼如下
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 拖上去, 大功告成,
需要時候點擊一下, 即可在當前文件夾生成一個空文件.