• 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
Re: Problem setting a script to check for a running app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Search & Replace multiple Paragraph returns
  • Next by Date: Re: Search & Replace multiple Paragraph returns
  • Previous by thread: Re: Problem setting a script to check for a running app
  • Next by thread: RE: Problem setting a script to check for a running app
  • Index(es):
    • Date
    • Thread