Monitoring processes
Monitoring processes
- Subject: Monitoring processes
- From: "Stephen Gross" <email@hidden>
- Date: Mon, 22 Jan 2001 10:24:25 -0500
- Organization: Stuart Country Day School
I have a script that sequentially executes a list of scripts. The
problem is getting it to wait until one script has finished before
starting the next one. Here's my code right now:
=====
repeat with CurrentScript in ScriptList
open CurrentScript
set NameOf to name of CurrentScript
set CurrentProcesses to list processes
repeat until NameOf is not in CurrentProcesses
set CurrentProcesses to list processes
end repeat
end repeat
=====
The problem is that my machine keeps bombing out, and I *think* it's
related to my use of "list processes". Does anyone know either (1) a
different way to wait for an applet to finish, or (b) a better way to
use "list processes"?
Thanks in advance,
Stephen Gross