【发布时间】:2010-10-26 04:12:03
【问题描述】:
如何使用 AppleScript/Automator 来创建一个服务,在所选文件夹中创建一个空的 AppleScript 文件?
【问题讨论】:
标签: applescript automator
如何使用 AppleScript/Automator 来创建一个服务,在所选文件夹中创建一个空的 AppleScript 文件?
【问题讨论】:
标签: applescript automator
您想使用命令行实用程序 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
【讨论】: