• 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: Grab list of album names in iTunes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grab list of album names in iTunes?


  • Subject: Re: Grab list of album names in iTunes?
  • From: Greg Townsend <email@hidden>
  • Date: Tue, 3 Feb 2004 15:30:06 -0500

set newList to {}
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

That oughta work. Good luck.

Greg

On Feb 3, 2004, at 1:45 PM, Mark Dawson wrote:

I'd like to compile a list (unique) of albums in my iTunes library. Is there a way to do this? I could do a loop for every track and access the "album" part of the track, but that would give me lots of duplicate album names.

Thanks!

Mark
email@hidden
_______________________________________________
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.
_______________________________________________
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: Grab list of album names in iTunes (style question)?
      • From: mark <email@hidden>
References: 
 >Grab list of album names in iTunes? (From: Mark Dawson <email@hidden>)

  • Prev by Date: [ANN] AppleScript Developer Wanted
  • Next by Date: SUMMARY: Applets Won't Run... Is This a Bug or a Feature?
  • Previous by thread: Re: Grab list of album names in iTunes?
  • Next by thread: Re: Grab list of album names in iTunes (style question)?
  • Index(es):
    • Date
    • Thread