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
。私は何を間違っていますか?