Re: How to Run a "sudo" Terminal Command
Re: How to Run a "sudo" Terminal Command
- Subject: Re: How to Run a "sudo" Terminal Command
- From: Axel Luttgens <email@hidden>
- Date: Sat, 12 Dec 2015 13:34:53 +0100
> Le 12 déc. 2015 à 13:20, Dave a écrit :
>
> Hi All,
>
> I’d like to execute a Shell Script with the “sudo” command, e.g.
>
> sudo some-command
>
> If I do this from the terminal it prompts me for my password how can I do this from an AppleScript, ideally I’d like the Standard Mac OS Password Dialog to appear…..
Hello Dave,
The equivalent of a "sudo" may be achieved this way (note the lack of "sudo" in the script to be executed):
do shell script "some-command" with admnistrator privileges
and will raise a standard dialog.
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden