Re: do script takes too long
Re: do script takes too long
- Subject: Re: do script takes too long
- From: Adam Bell <email@hidden>
- Date: Fri, 13 Jan 2006 20:00:39 -0400
You don't need to use the terminal to do a shell script. You use do shell script "put script here" from within the AppleScript. With this structure, your script does wait for the shell script to complete. With your method, your script will continue when it has handed off the task to the terminal.
On 1/14/06, gerd schmalfeld <email@hidden> wrote:
Hello,
i need to include a shell command with do script in an applescript. But
the shell often does not yet finish working, when the applescript
already continues. Result of the shell is needed for the AS to continue.
Is there any way to tell AS to wait until shell command is finished?
With delay is not possible, as the shell command sometimes may need two
seconds or maybe sometimes 30 minutes .
with timeout of timeout_amount seconds
tell application "Terminal"
tell window 1
activate
do script thescript
delay 15
close
end tell
end tell
end timeout
thanks in advance for any help
Gerd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden