我创建了一个 AppleScript 包 -main.app
从
on run
set appAlias to POSIX path of (path to resource "MyApp.app")
set cmnd to appAlias & "Contents/MacOs/MyApp &"
display dialog "You're going to launch" & cmnd buttons {"Ok"}
do shell script cmnd with administrator privileges
end run
MyApp.app
居住在main.app/Contents/Resources
当我启动它时,它会在显示对话框并询问并且没有启动main.app
后立即退出。我究竟做错了什么?username
password
MyApp.app