Re: Problem setting a script to check for a running app
Re: Problem setting a script to check for a running app
- Subject: Re: Problem setting a script to check for a running app
- From: John M <email@hidden>
- Date: Wed, 8 Jun 2005 22:52:33 +0100
Hi Francois
Two things, the 'set proc_list to every process' is outside the loop,
so the list won't change when the process stops. Also I'm think
"Installer" is the name of the process, so you'd need to ask for name
of every process.
How about?
tell application "System Events"
repeat
if name of every process does not contain "Installer" then exit repeat
--delay 1
end repeat
end tell
Somewhat a processor hog though. You may want to uncomment the delay 1
line.
Best wishes
John M
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden