Re: Running scripts sequentially
Re: Running scripts sequentially
- Subject: Re: Running scripts sequentially
- From: Bryan <email@hidden>
- Date: Thu, 18 Jan 2001 23:47:11 -0500
- Organization: Apex Radiology
--untested code
set scriptlist to {path2script1, path2script2, ...}
repeat with myscript in scriptlist
tell application finder
open file myscript
set myscriptname to (name of (info for file myscript))
end tell
repeat
if myscriptname is not in list processes then exit repeat
sleep for 10
end repeat
end repeat
Bryan Kaufman
Stephen Gross wrote:
>
I want to run a series of applescripts from an applescript, but I want
>
to make sure that each one has finished before the next one starts.
>
here's the pseudo code:
>
>
=====
>
Set Script_List to a list of applescripts
>
For each script in scrip_list
>
{
>
execute the script
>
wait till the script is finished before continuing the loop
>
}
>
=====
>
>
Any ideas?
>
>
Thanks in advance,
>
Stephen Gross
>
_______________________________________________