Re: Active application - how to tell?
Re: Active application - how to tell?
- Subject: Re: Active application - how to tell?
- From: Christopher Stone <email@hidden>
- Date: Tue, 22 Jun 2004 03:58:28 -0500
At 09:59 +0200 06/22/2004, Peter Mathiessen wrought:
How do I tell the System event application if an application is running or
not?
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
Chris
_______________________________________________
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.