• 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: Application running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Going on hiatus
  • Next by Date: Re: beep broken in 10.2?
  • Previous by thread: Application running
  • Next by thread: No-sleep
  • Index(es):
    • Date
    • Thread