Code: Select all
put field "StopiTunesScript" into tTheScript
do tTheScript as applescript
This is the content of the field:
All works fine but unfortunately, this don't work when I sandbox the app.tell application "iTunes"
if it is running then -- to avoid to open iTunes if it is not running
stop
end if
end tell
PS
I attach a screen shot of the Capabilities section of AppWrapper 3 (which I use to sandbox and sign the app) where I can't find an option dedicated to AppleScript.