How stop iTunes playing in a sandboxed app?
Posted: Wed Dec 14, 2016 6:26 pm
I'm working in a Mac project where I need to stop iTunes playing. Currently I use this code:
This is the content of the field:
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.
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.