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 18:17:33 +0100
> Le 12 déc. 2015 à 17:57, S. J. Cunningham a écrit :
>
> […]
>
> I'd like to know how to do it _without_ the dialog. Something like:
>
> do shell script xxx with user ID yyy and password zzz
Hello Steve,
The full syntax of the "do shell script" command is available at:
https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_cmds.html#//apple_ref/doc/uid/TP40000983-CH216-SW40
But this would mean storing an administrator’s password in your script.
Probably not a good idea at all…
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