Re: making a script wait until a task finishes before proceeding
Re: making a script wait until a task finishes before proceeding
- Subject: Re: making a script wait until a task finishes before proceeding
- From: Jon Pugh <email@hidden>
- Date: Mon, 12 Aug 2002 16:54:22 -0700
At 7:15 PM -0400 8/12/02, Matt Hoyle wrote:
>
tell application "Finder"
>
activate
>
--
>
with timeout of 600 seconds
>
--compress folder of aliases using DropStuff
>
select folder . . .
>
set editorApp to application file id "DStf"
>
open selection using editorApp
>
end timeout
>
>
--tell script to wait for 10 minutes while DropStuff creates archive
>
--tell me to sleep for 600
The Finder doesn't wait, but you've realized that already. You seem to have ascribed that behavior to AppleScript though.
You want to do this:
tell app "DropStuff"
with timeout of 999999 seconds
open {stuff to stuff}
end
end
Now AppleScript will wait for DropStuff to finish instead of waiting for the Finder to launch DropStuff and let it go on its way.
Jon
_______________________________________________
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.