Automator 新建一个 Application
<img src="//bbsmax.ikafan.com/static/L3Byb3h5L2h0dHBzL3BpYzEuemhpbWcuY29tLzc4Y2U2Mjc2NjdlNWI4YzdhYjFiY2ZmMTI1ZTE5OTY4X2IucG5n.jpg" data-rawwidth="97" data-rawheight="109" class="content_image" width="97">
添加一个动作 "Run AppleScript"
<img src="//bbsmax.ikafan.com/static/L3Byb3h5L2h0dHBzL3BpYzIuemhpbWcuY29tL2IxOTMxZDVmMTMyOGQzMDU1OTcxOTA4OGM5ZmFmZmIxX2IucG5n.jpg" data-rawwidth="1816" data-rawheight="1088" class="origin_image zh-lightbox-thumb" width="1816" data-original="https://pic2.zhimg.com/b1931d5f1328d30559719088c9faffb1_r.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 拖上去, 大功告成,
<img src="//bbsmax.ikafan.com/static/L3Byb3h5L2h0dHBzL3BpYzEuemhpbWcuY29tLzM3ZTUyODAzNDJjMDljOTBmMDlmODgwZDg0ZWYxMjUwX2IucG5n.jpg" data-rawwidth="711" data-rawheight="442" class="origin_image zh-lightbox-thumb" width="711" data-original="https://pic1.zhimg.com/37e5280342c09c90f09f880d84ef1250_r.png">
需要时候点击一下, 即可在当前文件夹生成一个空文件.
手机扫一扫
移动阅读更方便
你可能感兴趣的文章