Re: Grab list of album names in iTunes (style question)?
Re: Grab list of album names in iTunes (style question)?
- Subject: Re: Grab list of album names in iTunes (style question)?
- From: mark <email@hidden>
- Date: Thu, 05 Feb 2004 16:18:43 -0800
I received two different versions of code to solve this problem, and I was
wondering if there was any real difference, other than style (should either
one work faster than the other)? I don't know enough about AS to tell
Thanks! Mark
The above code does this:
set albumList to (album of every track of library playlist 1) as list
repeat with i from 1 to count of albumList
set thisAlbum to item i of albumList as string
if newList does not contain thisAlbum then
copy thisAlbum to end of newList
end if
end repeat
I got another version that looks like this (unless I mistyped something, the
below works):
set lib to library playlist 1
set libcount to count of tracks of lib
repeat with i from 1 to libcount
set theAlbum to album of track i of lib
if theAlbum is not in albumlist then
set end of albumlist tp theAlbum
end repeat
_______________________________________________
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.