• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript in Sandboxed App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript in Sandboxed App


  • Subject: Re: AppleScript in Sandboxed App
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 14 Jan 2013 19:04:07 +0000

On 14 Jan 2013, at 17:59, Mike Abdullah <email@hidden> wrote:

>
>>
>
> Go watch the sandboxing videos from WWDC this year. They cover automation quite a bit, and all will be made much clearer.
>
You want session 206 - Secure automation techniques in OS X.

If you don't have access we can probably paraphrase the main points.

To run User supplied scripts will entail the use of NSUserAppleScriptTask et al.
The sandbox will allow your app to read user scripts from ~/Library/Application Scripts/code-signing-identifier aka NSApplicationScriptsDirectory.
The crucial point is that your app has no write access to NSApplicationScriptsDirectory.
The user has to manually move scripts into that folder.
This move signals user interaction, in the same way that running a script from the command line does, and the script is permitted to escape the sandbox.

The sandbox places no restriction on receiving AppleEvents.
The restriction is on sending them.

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

References: 
 >AppleScript in Sandboxed App (From: John Nairn <email@hidden>)
 >Re: AppleScript in Sandboxed App (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: Optimal height for WebView
  • Next by Date: Re: Could somebody please fix NSTimer?
  • Previous by thread: Re: AppleScript in Sandboxed App
  • Next by thread: Re: AppleScript in Sandboxed App
  • Index(es):
    • Date
    • Thread