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: John Delacour <email@hidden>
- Date: Tue, 13 Aug 2002 01:07:08 +0100
At 7:15 pm -0400 12/8/02, Matt Hoyle wrote:
That part of the script works ok, but I have some other statements
after that section which I want to run ONLY after DropStuff
finishes. I am currently unable to get the script to wait until the
archiving completes before proceeding.
Here's a snippet:
tell application "Finder"
activate
--
with timeout of 600 seconds
--compress folder of aliases using DropStuff
select folder . . .
All this selecting is redundant; you just need to give the pathname,
but to answer your question, presuming that Dropstuff quits by
itself, you could try
-- stuff things
tell app "Finder"
repeat while "Dropstuff" is in name of processes
delay 1
end repeat
end tell
-- do more stuff
_______________________________________________
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.