do script takes too long
do script takes too long
- Subject: do script takes too long
- From: gerd schmalfeld <email@hidden>
- Date: Sat, 14 Jan 2006 00:23:43 -0800
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.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden