• 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
Scripting Teminal.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting Teminal.app


  • Subject: Scripting Teminal.app
  • From: Marconi <email@hidden>
  • Date: Sun, 22 Dec 2002 16:27:56 -0700

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.
  • Follow-Ups:
    • Re: Scripting Teminal.app
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Airport scripting
  • Next by Date: Re: Scripting Teminal.app
  • Previous by thread: Airport scripting
  • Next by thread: Re: Scripting Teminal.app
  • Index(es):
    • Date
    • Thread