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, jonat...@mugginsoft.com <jonat...@mugginsoft.com> 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 (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/unmarked%40gmail.com > > This email sent to unmar...@gmail.com -- Mark Munz unmarked software http://www.unmarked.com/ _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com