Hi I am trying to write a script to read the library of iTunes and print out a list of the titles that comply with the conditions. This is part of a tutorial I am going through. It is called AppleScript for Beginners IV - Records & Repeats
tell application "iTunes"
set the_No_Beatles_List to every track of library playlist 1 whose duration is greater than 3600 and duration is less than 5000 and artist does not contain "Beatles"
set itunes_Records_No_Beatles to {}
repeat with a_Track in the_No_Beatles_List
set end of itunes_Records_No_Beatles to {TrackName:a_Track's name, TrackArtist:a_Track's artist, TrackAlbum:a_Track's album, TrackRating:((a_Track's rating) / 20)}
end repeat
end tell
I know there is more than one list because the first track that comes up starts with the name Rick if I put that in the place of the name Beatles (so as to not cotain it in the list) I get the next track which is Andrew. So for some reason it isn’t looping through the library. Please help me to know what is wrong. I am on Mountain Lion 10.8.
Thanks I am new to AppleScript
Randal
Model: MacBook Pro
AppleScript: 2.2.3
Browser: Firefox 18.0
Operating System: Mac OS X (10.8)