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

Re: Terminal


  • Subject: Re: Terminal
  • From: "Mark Wagner" <email@hidden>
  • Date: Tue, 23 Oct 2007 10:21:29 -0700

On 10/22/07, Kristian Spriggs <email@hidden> wrote:
> When writtong a script with "tells" to get terminal to run scripts how
> do inget It to execute the command all in the same shell.
> Ex
> Tell application "Terminal"
> Activate
> Do script "1234"
> Do script "5678"
> End tell
>
> When aomething like this is executed it is done with each script in a
> different she'll not all in the same shell window. Any ideas?
> K Spriggs

If you want them to run in the same shell, you need to put them on the
same line.  If you want "5678" to only run if "1234" was successful,
join them with a double-ampersand: "1234 && 5678".  If you want "5678"
to run no matter what, join them with a semicolon: "1234; 5678".

--
Mark Wagner
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Terminal (From: Kristian Spriggs <email@hidden>)

  • Prev by Date: Re: Terminal
  • Next by Date: Problem with ld --wrap, Help
  • Previous by thread: Re: Terminal
  • Next by thread: Link error for mach_absolute_time()
  • Index(es):
    • Date
    • Thread