Mac OS X 在Finder新建文本文件


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 拖上去, 大功告成,

需要時候點擊一下, 即可在當前文件夾生成一個空文件.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM