Re: do shell script and passwords
Re: do shell script and passwords
- Subject: Re: do shell script and passwords
- From: John W Baxter <email@hidden>
- Date: Mon, 10 Jun 2002 21:24:42 -0700
At 14:07 +0100 6/10/2002, Alex Robinson wrote:
>
And your line should read
>
>>>>
>
do shell script "/usr/sbin/rawrequest" password AdminPass with
>
administrator privileges
>
<<<<
>
>
As it stands
>
>>>>
>
do shell script "/usr/sbin/rawrequest" administrator privileges yes
>
password AdminPass
>
<<<<
Just changing the yes to true (which is one of the two boolean values...yes
isn't) is sufficient (AppleScript will decompile the compiled script with
the password before the "administrator privileges," and the "administrator
privileges true" replaced by "with administrator privileges".
The latter is just as with any proper boolean parameter.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.