[futurebasic] Re: [FB] Sandboxing: Data migration fails

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2013 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Sun, 28 Apr 2013 18:33:18 -0400
Rich wrote:

> What if I need to send an AppleScript to the Finder?
> I am guessing that is not possible with sandboxing.


It should be possible, but you need to set a temporary AppleEvent entitlement in your app identifying the Finder-- or any other apps you are scripting-- as a target of your AppleScript messaging (read, write or read-write). References:

http://tinyurl.com/c5xprzo

and 

http://tinyurl.com/d8scbkj

The .entitlements XML will look like this in ASCII (note strings are case sensitive and contrary to reason, i.e., Finder is identified in lowercase, as is an Apple application like Safari or iTunes):

<key>com.apple.security.temporary-exception.apple-events</key>
<array>
<string>com.apple.finder</string>
<string>com.apple.safari</string>
<string>com.apple.itunes</string>
</array>

This should get your app though the App Store.

Ken