Re: NSUserUnixTask and the sandbox
Re: NSUserUnixTask and the sandbox
- Subject: Re: NSUserUnixTask and the sandbox
- From: Mark Munz <email@hidden>
- Date: Fri, 30 Nov 2012 00:39:23 -0800
To get outside the sandbox, the scripts have to be placed (by the end
user) in a special scripts folder which sandboxed apps can read from,
but cannot write to. It will (should) fail if you try to create a
script task from a URL that isn't inside the special folder. Apple
specifically says you cannot use NSUserScriptTask for scripts inside
your bundle and need to stick with NSTask.
Session 206 from the WWDC 2012 videos covers this in much better detail.
Mark
On Fri, Nov 30, 2012 at 12:10 AM, email@hidden
<email@hidden> wrote:
> Has anyone much experience with NSUserUnixTask to run scripts outside of the sandbox?
>
> Can one, for instance, use the script to execute a helper auxiliary from the app bundle that would have been sand boxed if executed directly via NSTask?
>
> Regards
>
> Jonathan Mitchell
> Mugginsoft LLP
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
Mark Munz
unmarked software
http://www.unmarked.com/
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden