Re: hold until it is finished
Re: hold until it is finished
- Subject: Re: hold until it is finished
- From: Andrew Oliver <email@hidden>
- Date: Mon, 17 Feb 2003 10:21:58 -0800
Do you really need to use the terminal to do this?
You can just use:
do shell script "blah blah"
In your script, without using a tell application 'Terminal' block and
AppleScript will execute the shell script, waiting for it to terminate, and
returning stdout in the result.
Of course this won't work if you need the shell script to be interactive
(there's nowhere for user input to occur when not in the terminal), but in
most cases it beats launching the terminal.
Andrew
:)
On 2/17/03 9:35 AM, "Lizardo H.C.M.Nunes" <email@hidden> wrote:
>
Hi,
>
>
I have a simple script containing something like
>
>
tell application "Terminal"
>
do script with command "..."
>
>
and after that I tell another application to do something. The problem
>
is that the applescript don't wait until the "command" is finished, but
>
I want it to do so. How can I tell the applescript to hold until the
>
task in the Terminal is over?
>
>
Tips, examples or docs are welcome.
>
>
Thanks,
>
Lizardo H. C. M. Nunes
>
>
...But we preach Christ crucified, to the Jews a stumbling block, and
>
to the
>
Greeks foolishness;(...)but God has chosen the foolish things of the
>
world
>
to confound the wise, and God has chosen the weak things of the world to
>
confound the things which are strong;(I Cor.1:23&27)
>
_______________________________________________
>
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.
_______________________________________________
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.