Re: Scripting Teminal.app
Re: Scripting Teminal.app
- Subject: Re: Scripting Teminal.app
- From: "John S. Baltutis" <email@hidden>
- Date: Mon, 23 Dec 2002 00:16:52 -0800
Try this single line; eliminates the prompt:
tell application "Terminal"
do script "sudo /System/Library/Path/To/My/Command" in front window (NO
BREAK)
with administrator privileges given password "password"
end tell
On 12/22/02, Marconi <email@hidden> wrote:
>
>
How do I script Terminal to enter more than one line? For example:
>
>
tell application "Terminal"
>
do script "sudo /System/Library/Path/To/My/Command" in front window
>
end tell
>
>
How can I then get my script to enter the password in response to the
>
"Password" prompt (as a result of the "sudo")?
_______________________________________________
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.