Re: do shell script
Re: do shell script
- Subject: Re: do shell script
- From: Andrew Oliver <email@hidden>
- Date: Tue, 15 Feb 2005 11:51:14 -0800
You don't include it in the script, you pass it to 'do shell script':
do shell script "pmset -a ams 0" with administrator privileges password
"supersecret"
The password parameter is optional - do shell script will prompt for the
password at runtime if it's not specified.
Andrew
:)
On 2/15/05 11:45 AM, "Michelle Steiner" <email@hidden> wrote:
> How do you include the admin password in do shell script?
>
> For instance, this requires a password:
>
> do shell script "sudo pmset -a ams 0"
>
> -- Michelle
_______________________________________________
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