• 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: Check if iTunes is playing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check if iTunes is playing?


  • Subject: Re: Check if iTunes is playing?
  • From: kai <email@hidden>
  • Date: Sun, 3 Apr 2005 18:10:36 +0100


On Sun, 3 Apr 2005 12:00:03 -0400, Neil Lee wrote:

Is this the "best' way to check if iTunes is playing? I want to do a check if iTunes is playing, and if it isn't I want the script to exit.

if not (player state as string is "playing") then return

Seems fine to me, Neil - although I'd probably omit the string coercion, which isn't really necessary:


---------------

if player state is not playing then return

---------------

---
kai

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: vacation mail revisited
  • Next by Date: Re: Mac vs unix Carriage returns on a text file format
  • Previous by thread: Re: Check if iTunes is playing?
  • Next by thread: Re: Check if iTunes is playing?
  • Index(es):
    • Date
    • Thread