• 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
dd: obtaining an iTunes CD playlist
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dd: obtaining an iTunes CD playlist


  • Subject: dd: obtaining an iTunes CD playlist
  • From: dave dowling <email@hidden>
  • Date: Wed, 6 Mar 2002 00:08:47 -0500

i'm trying to get the playlist of an audio CD in iTunes. my problem is that i can't get iTunes to count the number of songs in the CD's playlist. it returns a count of 0, when there are 14 songs on the CD.

here's what i have so far:

tell application "iTunes"
repeat with i from 1 to count sources
set x to kind of source i
if x as string = "audio CD" then
set y to name of source i
set n to (count audio CD tracks of source y)
end if
end repeat
end tell


here's the event log:

tell application "iTunes"
count every source of current application
get kind of source 1
(*library*)
get kind of source 2
(*radio tuner*)
get kind of source 3
(*audio CD*)
get name of source 3
(*Every Breath You Take - The Classics*)
count every audio CD track of source "Every Breath You Take - The Classics"
(*0*)
end tell


thanks.
dave dowling

free at last! how i found peace with God: http://www.davedowling.com/steps.html
_______________________________________________
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: dd: obtaining an iTunes CD playlist
      • From: garbanzito <email@hidden>
    • Re: dd: obtaining an iTunes CD playlist
      • From: Rob Jorgensen <email@hidden>
  • Prev by Date: Invisible comments (was: Re: Finder Tell Blocks)
  • Next by Date: Re: dd: obtaining an iTunes CD playlist
  • Previous by thread: Re: Invisible comments (was: Re: Finder Tell Blocks)
  • Next by thread: Re: dd: obtaining an iTunes CD playlist
  • Index(es):
    • Date
    • Thread