我在我的/Scripts应用程序的AppleScript文件夹中存储了几个shell脚本。
我可以通过设置基本路径来访问它们。
set basePath to POSIX path of ((path to me as text)) & "Contents/Resources/Scripts/"
但我只能在调用终端应用程序时才能运行脚本
-- This works
tell application "Terminal"
set currentTab to do script (basePath & "install_key.sh