0

如何使用 AppleScript/Automator 制作一项服务,在所选文件夹中制作一个空的 AppleScript 文件?

4

1 回答 1

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
于 2010-10-25T20:12:03.707 回答