Re: making applescript wait until shell script finishes
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