How stop iTunes playing in a sandboxed app?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

How stop iTunes playing in a sandboxed app?

Post by Mag »

I'm working in a Mac project where I need to stop iTunes playing. Currently I use this code:

Code: Select all

put field "StopiTunesScript" into tTheScript
do tTheScript as applescript

This is the content of the field:
tell application "iTunes"
if it is running then -- to avoid to open iTunes if it is not running
stop
end if
end tell
All works fine but unfortunately, this don't work when I sandbox the app.

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.
Attachments
appw.jpg
Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: How stop iTunes playing in a sandboxed app?

Post by Mag »

Really no one knows how to do this? :cry:
Ledigimate
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 132
Joined: Mon Jan 14, 2013 3:37 pm

Re: How stop iTunes playing in a sandboxed app?

Post by Ledigimate »

A sandboxed app isn't supposed to be able to interact with other applications via applescript because if it could, wouldn't that defeat the purpose of the sandbox?
010100000110010101100001011000110110010100111101010011000110111101110110011001010010101101010100011100100111010101110100011010000010101101001010011101010111001101110100011010010110001101100101
Post Reply