• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Monitoring processes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Monitoring processes
      • From: Bryan <email@hidden>
  • Prev by Date: Switching PPP & TCP/IP configurations with AS.
  • Next by Date: A simple dialog question
  • Previous by thread: Re: Switching PPP & TCP/IP configurations with AS.
  • Next by thread: Re: Monitoring processes
  • Index(es):
    • Date
    • Thread