Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Terminal



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.