dd: obtaining an iTunes CD playlist
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.