Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to aid in iTunes reimported CD naming' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to aid in iTunes reimported CD naming
Authored by: klawton on Jun 15, '03 12:48:27PM
This hint really helped. I just got an iPod so I've begun reencoding everything at AC 128 so I can fit more on it. This is my first time needing to script iTunes (or pretty much any app).

I have a couple suggestions, one of which is more of a question:

I wanted the script to clean up after itself, by emptying the "copy" playlist after use, so I changed the loop to:

repeat with i from 1 to theNumber
	set the name of (audio CD track i of theCD) to 
		(the name of track 1 of theList) as string
	delete track 1 of theList
end repeat
Since I drop each track from the playlist after it's updated, I had to change the "track i" to "track 1" in the third line. Anyway, this works, although a "delete all tracks from theList" at the end would be more intuitive.

My second suggestion/observation/question is that it seems essential that you set the sort order for the "copy" playlist to track #. I didn't have this set and it assigned all the wrong names to the tracks on the CD. Am I right about this? Would it be better to put "sort theList by track#" in the script? I can't see how to do that (I'm new to this, remember).

Thanks for the tip!

[ Reply to This | # ]