Re: Terminal
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>) |