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

query if application is open


  • Subject: query if application is open
  • From: "Jacob Eggers" <email@hidden>
  • Date: Wed, 21 Feb 2007 17:59:20 -0500

Hey all,
I know there's a simple answer to my question, but I can't seem to find it anywhere on the web.

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

tell application "iTunes"
   if player state is playing then
   --do this
    end if
end tell


but, if iTunes isn't open, it'll first open the player.

I apologize for my ignorance,
j
 _______________________________________________
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: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Looking for AppleScripter willing to help Š
  • Next by Date: Re: query if application is open
  • Previous by thread: Re: Looking for AppleScripter willing to help ?
  • Next by thread: Re: query if application is open
  • Index(es):
    • Date
    • Thread