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: Fri, 29 Aug 2014 21:21:36 -0400
On Aug 29, 2014, at 9:05 PM, Brian Christmas <email@hidden> wrote:
> G'day again
>
> It's OK, I worked it out from http://www.automatedworkflows.com/2011/10/13/sandboxing-a-cocoa-applescript-applescriptobjc-application/
I don’t think that will work anymore…. (dated 2011) You can’t use temporary entitlements in sandbox anymore. Try throwing “finder" in there and see what the reviewers say. I had to rewrite all the apple events part of my app in OBJc methods because you can only use a limited number of specific applescript commands for only a few applications.
You have to use these special scripting targets entitlements whih are very limited.
From the official docs:
"If your app needs to control another scriptable app, your app can use the scripting targets entitlement to request access to one or more of the scriptable app’s scripting access groups.”
It is very tightly controlled now but good luck.
Rob
>
> Thanks anyway,
>
> Regards
>
> Santa
>
> On 30/08/2014, at 9:21 AM, Brian Christmas <email@hidden> wrote:
>
> G'day scripters
>
> I've learnt that sandboxed apps cannot use the Finder, but in place of it, how can I specifically...
>
> 1. Check if a folder exists in the sandbox 'Documents' folder
>
> 2 Create a new folder in the sandboxed 'Documents' folder
>
> 3 Replace the Finder 'set everyFile to every file of documentsFolder whose name contains ".plist"
>
> 4 Get a file to run in place of this handler,
>
> on openMyScriptFile_(sender)
> try
> set pathToApplescriptFile to path to current application as text
> tell application "Finder"
> set applescriptFile to pathToApplescriptFile & "Contents:Resources:ApplescriptObjC Wizard.scpt"
> open applescriptFile
> end tell
> on error errmsg
> display dialog errmsg
> end try
> end openMyScriptFile_
>
> I've been googling for four hours, and cannot find the answers.
>
> Regards
>
> Santa
>
> _______________________________________________
> 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