• 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: What does errAuthorizationToolEnvironmentError mean?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What does errAuthorizationToolEnvironmentError mean?


  • Subject: Re: What does errAuthorizationToolEnvironmentError mean?
  • From: Andy Lee <email@hidden>
  • Date: Fri, 23 Jan 2009 08:29:26 -0500

On Jan 22, 2009, at 11:03 PM, Jim Correia wrote:
I don't know why you are running into this problem. Chances are others might not know either. This is not a sanctioned/supported use of AEWP.

In other words, if the answer to the problem is to (repeatedly) call rm, cp, mv or chmod via AEWP, the problem is usually misdefined.

Generally, you want to factor out the code that needs elevated privileges into your own tool, and execute that using Authorization Services. There is sample code on developer.apple.com which does this.

Thanks, Jim. I see advice on another thread as well to look at Apple's sample code. In this case the "sample code" I looked at was code I inherited. :)


--Andy


_______________________________________________

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: 
 >What does errAuthorizationToolEnvironmentError mean? (From: Andy Lee <email@hidden>)
 >Re: What does errAuthorizationToolEnvironmentError mean? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Problem assigning image to button under garbage collection
  • Next by Date: Re: Getting iPod icon, was Getting the network Machine Icon
  • Previous by thread: Re: What does errAuthorizationToolEnvironmentError mean?
  • Next by thread: puzzled about speech synthesis
  • Index(es):
    • Date
    • Thread