我将这段代码实现到我前几天制作的AppleScript应用程序中,但它似乎不起作用。我正在尝试运行另一个AppleScript脚本。
set filescript to (path to resource "file creator.scpt" in directory "Scripts")
run script (path of filescript)
无法获取类的PPTH的别名。
我现在是这样做的:
run script alias (((path to home folder) as string) & "projects:Another Script.applescript")
在这个例子中,我想运行的另一个脚本是在~/projects/Another Script.applescript
中。我用它来运行另一个applescript在一个脚本保存为文本或应用程序。