• 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: making applescript wait until shell script finishes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making applescript wait until shell script finishes


  • Subject: Re: making applescript wait until shell script finishes
  • From: Christopher Nebel <email@hidden>
  • Date: Sat, 5 Nov 2005 14:18:54 -0800

On Nov 4, 2005, at 8:20 PM, Dave Lyons wrote:

Two suggestions:

(1) Take out the "tell Finder" part...you aren't doing anything specific to Finder. -- In fact, maybe that's the entire problem. I don't know why (so I'm not saying this is a bug...there may be a good reason), but experiment shows you can't "do shell script ... with administrator privileges" inside of a "tell Finder":

tell application "Finder" to do shell script "ls" with administrator privileges

This really ought to be documented somewhere, but it is indeed true that you cannot tell another application to "do shell script with administrator privileges", because we simply don't allow it. That's because it creates a security hole: it would allow an attacker to change the application name that appears to be requesting access.



--Chris Nebel AppleScript and Automator Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: making applescript wait until shell script finishes (From: Jay Louvion <email@hidden>)
 >Re: making applescript wait until shell script finishes (From: Dave Lyons <email@hidden>)

  • Prev by Date: Re: speed test, anyone?
  • Next by Date: Re: Application name length
  • Previous by thread: Re: making applescript wait until shell script finishes
  • Next by thread: Extract from result of current date
  • Index(es):
    • Date
    • Thread