Re: Requesting help with sandboxing questions please
Re: Requesting help with sandboxing questions please
- Subject: Re: Requesting help with sandboxing questions please
- From: Robert DuToit <email@hidden>
- Date: Sat, 30 Aug 2014 12:34:15 -0400
On Aug 30, 2014, at 9:23 AM, Brian Christmas <email@hidden> wrote:
> G'day Rob, and thank you.
Hi Santa,
>
> At the moment, I've got my App running OK with the entitlement com.apple.security.temporary-exception.apple-events set to com.apple.finder.
>
> Are you saying that this won't pass the Mac App Store review procedure? I'm only asking because I've got another app in the works that needs to address iTunes. I can use your procedure to read and write my .plist files within the sandbox for both apps, but while my present app only needs to read/write .plist's, my second won't work without iTunes access.
They didn’t allow me to use any entitlements, especially for finder. If you target an app it must have these special scripting-target keys for certain commands. iTunes, Mail and a few other apps have them but they may not do what you want - pretty limited stuff. I forget how you find which targets are available for an app - sure you can google it. If You need basic read write for iTunes I bet it may work. Just to give an example: I had accessed iPhoto's Selection property via applescript but there was no such thing built in to iPhot as a scripting target. Supposedly Apple will be adding to the list of targets and they suggest you file a bug/feature request for specific targets - fine if you don’t mind waiting a year or so to use your target.
com.apple.security.scripting-targets
>
> Is this a no no?
Not necessarily - check out the iTunes scripting target situation.
Best, Rob
>
> Regards
>
> Santa
>
>
> On 30/08/2014, at 9:25 PM, Robert DuToit <email@hidden> wrote:
>
>> Woops,
>>
>> hit send button by mistake… meant to finish that:
>>
>> set DocFoldPath top path to Documents folder ( >> Macintosh HD:Users:Rob:Library:Containers:com.robdutoit.testApp:Data:Documents:
>> set DocList to list folder DocFoldPath
>> set posPath to ((posix path of DocFoldPath)&”/test.txt”) as string
>> do shell script (“Date > “& quoted form of posPath)
>>
>> So you can use applescript commands within your container without throwing sandbox error. Reviewers should be ok with that.
>>
>> As long as you don’t go through apple events to other apps like “finder”
>>
>> You may still need to use an OBJc class for writing to a plist or at least use the applescriptObjectiveC bridge to it.
>>
>> Cheers, Rob
>>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> applescriptobjc-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden