• 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: Terminal question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminal question


  • Subject: Re: Terminal question
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 4 Mar 2002 12:13:39 -0800

On Sunday, March 3, 2002, at 02:59 PM, Cornwall wrote:

How can I use AppleScript to run two lines in Terminal? At every startup I need to open Terminal, cd to another directory, run an app which resides there and then open another Terminal window and repeat those steps for another app in another directory.

You can give several commands in one string by separating them with semicolons, like this:

tell application "Terminal"
do script with command "cd /some/where; ./someapp1"
end tell

Yes, we know people want to send multiple commands to a single designated window. I'm told it's coming in a future version.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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:
    • Get Full Path of a Mounted Share
      • From: Jason Bourque <email@hidden>
References: 
 >Terminal question (From: Cornwall <email@hidden>)

  • Prev by Date: Re: Now is: Finder tell block
  • Next by Date: Finder error (-8069)?
  • Previous by thread: Terminal question
  • Next by thread: Get Full Path of a Mounted Share
  • Index(es):
    • Date
    • Thread