• 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: query if application is open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: query if application is open


  • Subject: Re: query if application is open
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 21 Feb 2007 16:06:57 -0700

On Feb 21, 2007, at 3:59 PM, Jacob Eggers wrote:

How do you check to see if an application is currently running? I wan to
check to see if iTunes is playing and am using

The following script will return true if iTunes is running

tell application "System Events"
	(application processes whose name is "iTunes") is not {}
end tell

-- Michelle

--
I am a pseudomasochist..  I like it when people pretend to beat me.


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: query if application is open
      • From: kai <email@hidden>
References: 
 >query if application is open (From: "Jacob Eggers" <email@hidden>)

  • Prev by Date: query if application is open
  • Next by Date: Re: query if application is open
  • Previous by thread: query if application is open
  • Next by thread: Re: query if application is open
  • Index(es):
    • Date
    • Thread