如何使用AppleScript / Automator制作一个在所选文件夹中制作空AppleScript文件的服务?
答案 0 :(得分:0)
您想使用命令行实用程序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