• 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 (style question)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Grab list of album names in iTunes? (From: Greg Townsend <email@hidden>)

  • Prev by Date: Photoshop CS: Doesn't do 300 dpi?
  • Next by Date: Re: Do shell script on a remote machine
  • Previous by thread: Re: Grab list of album names in iTunes?
  • Next by thread: ANNOUNCE: XSLT Tools 2.0
  • Index(es):
    • Date
    • Thread