• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scripting Teminal.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: FMP messages to Entourage calendar
  • Next by Date: Re: FileMakerPro messages to Entourage calendar
  • Previous by thread: Re: Scripting Teminal.app
  • Next by thread: Play Tone
  • Index(es):
    • Date
    • Thread