如何使用AppleScript/Automator创建一个服务,使选定文件夹中的AppleScript文件为空?
您想使用命令行实用程序osacompile。下面将在桌面上创建一个名为“test.scptd”的空白applescript
set applescriptCode to "" set applescriptPath to (path to desktop as text) & "test.scptd" do shell script "echo " & applescriptCode & " | osacompile -o " & quoted form of POSIX path of applescriptPath