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