• 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: NSApplicationScriptsDirectory access for helper tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApplicationScriptsDirectory access for helper tool


  • Subject: Re: NSApplicationScriptsDirectory access for helper tool
  • From: "email@hidden" <email@hidden>
  • Date: Fri, 30 Nov 2012 15:00:56 +0000

I think that this question can be distilled down to :

Can a sandboxed app bundle helper tool use NSUserUnixTask to run a user script in NSApplicationScriptsDirectory?

All my attempts have failed.

Regards

Jonathan Mitchell

On 30 Nov 2012, at 13:50, email@hidden wrote:

> In a sandboxed app I do the following for say com.mystuff.app and a folder named com.mystuff.app is created in NSApplicationScriptsDirectory as expected.
>
> NSError *error = nil;
>       NSURL *scriptsFolderURL = [[NSFileManager defaultManager]
>                                  URLForDirectory:NSApplicationScriptsDirectory
>                                  inDomain:NSUserDomainMask
>                                  appropriateForURL:nil
>                                  create:YES
>                                  error:&error];
>       MLogInfo(@"NSApplicationScriptsDirectory = %@", scriptsFolderURL);
>
> Now I also have a helper app identified as com.mystuff.app-helper.
> Trying to access url for the NSApplicationScriptsDirectory from within the helper yields an error saying that I don't have permission to save com.mystuff.app-helper into NSApplicationScriptsDirectory.
>
> Is this as expected and is there a workaround?
>
> Jonathan
>
>
>
>
>
>
>
>
>
> _______________________________________________
>
> 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


_______________________________________________

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: 
 >NSApplicationScriptsDirectory access for helper tool (From: "email@hidden" <email@hidden>)

  • Prev by Date: NSApplicationScriptsDirectory access for helper tool
  • Next by Date: NSPointerArray on iOS - truly __weak?
  • Previous by thread: NSApplicationScriptsDirectory access for helper tool
  • Next by thread: NSPointerArray on iOS - truly __weak?
  • Index(es):
    • Date
    • Thread