I have the Robert Greenberg "How To Listen To and Understand Great Music" lecture series on 48 CDs, which I am importing into iTunes this weekend. While the first few CDs had entries in GraceNote (and I have talked about the pain of this before), most do not, so I need to label each track myself.
I have heard a lot of people complain about the sigils in Perl---those goofy characters before the variable name. They are so confusing!
Are they really more confusing than what I have to do to name variables in AppleScript (or Java, C++, Python,
Witness:
tell application "iTunes"
copy (a reference to (get view of front window)) to thisPlaylist
set theLesson to the text returned of (display dialog "Enter the lesson:" default answer "")
-- if no tracks are selected, use them all
if selection is {} then
copy every file track of thisPlaylist to allTracks
else
copy selection to allTracks
end if
set listLength to length of allTracks
set subList to {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"}
set myIndex to 1
repeat while myIndex ≤ listLength
set aTrack to item myIndex of allTracks
set aTrack's artist to "Robert Greenberg"
set aTrack's album to "How To Listen To And Understand Great Music"
set aTrack's name to "Lesson " & theLesson & (item myIndex of subList as string)
set myIndex to myIndex + 1
end repeat
end tell
Crying (Score:2)
Re:Crying (Score:2)
Re:Crying (Score:2)
Re:Crying (Score:2)
How was that lecture? (Score:1)
Re:How was that lecture? (Score:2)
That's just my opinion though. Everyone I know who has listened to Greenberg's levtures have been delighted by them.
I'll be in New York next week, so you can hear one of the lectures if you like. They're all on my laptop