Active application - how to tell? One more
Active application - how to tell? One more
- Subject: Active application - how to tell? One more
- From: Peter Mathiessen <email@hidden>
- Date: Tue, 22 Jun 2004 19:41:04 +0200
How do I tell System Events to recheck until the process is not running?
------------------------------------------------------
Christopher Stone wrote:
You can do something like this:
tell application "System Events"
if exists (process 1 whose name is "Tex-Edit Plus") then
-- Do your thing.
set x to true
end if
end tell
This is ~ 3/100 sec faster on my machine (Dual 867 G4).
tell application "System Events"
set l to (name of processes) as string
end tell
if l contains "Tex-Edit Plus" then
-- Do your thing
set x to true
end if
------------------------------------------------------
---------------------------
Live long and prosper
Peter Mathiessen
---------------------------
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.