• 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: New iTunes Track
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New iTunes Track


  • Subject: Re: New iTunes Track
  • From: Dave Balderstone <email@hidden>
  • Date: Tue, 24 Feb 2004 19:03:03 -0600

On 24-Feb-04, at 5:55 PM, Greg Townsend wrote:

Is there a way to use AS to determine when the track playing in iTunes changes? I know you can use an idle handler, but I'd rather not have to poll iTunes any more than is necessary, and I'd also like to know when the track changes. Thanks.

I've done ZERO scripting of iTunes, but looking at the dictionary...

What if you got the duration of the current track and used that value to time the check for track name to see if it has changed?

If you launched the script before starting the track, you could use a handler to detect when the first track started playing and base your timing on that so you could keep it fairly accurate.

djb
_______________________________________________
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.


  • Follow-Ups:
    • Re: New iTunes Track
      • From: Greg Townsend <email@hidden>
References: 
 >New iTunes Track (From: Greg Townsend <email@hidden>)

  • Prev by Date: Re: vCard
  • Next by Date: Re: New iTunes Track
  • Previous by thread: New iTunes Track
  • Next by thread: Re: New iTunes Track
  • Index(es):
    • Date
    • Thread