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

Re: iTunes weirdness..


  • Subject: Re: iTunes weirdness..
  • From: "J. Stewart" <email@hidden>
  • Date: Tue, 30 Aug 2005 06:08:19 -0400

On 08/30/05 at -0500 Jim Witte said this

>I'll get 1 or 2 - what I would expect.  Why can't I get the 'file
>track id' from the 'current track' descriptor?

Mostly because "file track id" isn't a property of a track and "track number" is (see iTunes dictionary). I agree that you should be able to extract it though. Why not file a bug report on it? <http://developer.apple.com/bugreporter/>

Here's a workaround that should extract it for you.

tell application "iTunes"
    set ft to current track
    try
        ft's file track
    on error errMsg
        set fTrkId to word 13 of errMsg
    end try
end tell
display dialog fTrkId

I used iTunes 4.9 in Mac OS X 10.4.2. If your setup differs you may need to adjust the word count to get the correct id.

JBS
--
If Barbie is so popular, why do you have to buy her friends?
 _______________________________________________
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

References: 
 >iTunes weirdness.. (From: Jim Witte <email@hidden>)

  • Prev by Date: Re: iTunes weirdness..
  • Next by Date: Original item in Finder
  • Previous by thread: Re: iTunes weirdness..
  • Next by thread: Original item in Finder
  • Index(es):
    • Date
    • Thread