List processes problem
List processes problem
- Subject: List processes problem
- From: steve <email@hidden>
- Date: Wed, 03 Jan 2001 12:41:16 -0800
Hi list,
I'm having trouble with checking processes with a script that used to work
but no longer does. For the life of me I can't figure out what I'm doing
wrong or if I'm missing an Addition.
Basically, I am using an idle handler to check for all necessary processes.
If they are not there, I want to re-launch it.
Here's what I used before:
on idle
tell application "Finder"
set running_apps to processes as list
if running_apps does not contain "FileMaker Pro" or does not contain
"StuffIt Deluxe" then
tell application "restart script"
activate
end tell
end if
return 30
end idle
I have tried to switch this to
if running_apps contains process "FileMaker Pro" then
but I still get an error. What am I doing wrong?
Thanks!
--
Steve Kump
New Media Development
BC Newsgroup
34375 Cyril Street
Abbotsford, BC
Canada
(604)870-4520
email@hidden