Re: Application running
Re: Application running
- Subject: Re: Application running
- From: Kai Edwards <email@hidden>
- Date: Tue, 17 Sep 2002 23:07:43 +0000
on Mon, 16 Sep 2002 13:03:42 -0400, Alexis Mackenzie <email@hidden>
wrote:
>
What is the best way to find out if an application is running?
>
For instance, I need to know if the program Media 100 is running, and if so,
>
pop up an alert box.
Since this question looks like it's in danger of falling through the cracks,
Alex, try this:
-------------------------------------------------------------------
tell application "Finder"
if exists process "Media 100" then
display dialog "The application \"Media 100\" is running."
end if
end tell
-------------------------------------------------------------------
(As you may have guessed from this, the Finder refers to a running app as a
'process', rather than an 'application'.)
HTH.
Kai
--
email@hidden
email@hidden
_______________________________________________
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.