Enrico Franchi Homepage

Questo sito è obsoleto. La nuova versione di questa pagina è disponibile presso akropolix

This site is old. The new version of this page is available on akropolix

Fill disc

This is probably the most useful iTunes script I wrote. I use it with my old cd rips that do not have correct tags.
I needed a way to add tags in an authomated way. My firsr thought was "Python".
Then I reconsidered. I did not need the whole Python power, moreover, AFAIK, Python needs an external library to deal with mp3 id tag.
iTunes can correctly set tags, and I used manually a lot. But it was just boring. So I automated it all.
Now I have to put the songs in the correct order (in a Playlist, but very often they do begin with their track number, so they are already ordered). Then I select them and run the script.
It asks for artist's name and for album name. Then it has a counter so that it sets the right track numeber. In the future I think I will be using this rarely, since I discovered ieatbrainz that does much more.
Another interesting MacOS iTunes App is FetchArt, that downloads covers.
tell application "iTunes"
	display dialog "Artist name " default answer ¬
	   "" buttons {"OK"} default button "OK"
	set aname to the text returned of result
	display dialog "Album name " default answer ¬
	   "" buttons {"OK"} default button "OK"
	set dname to the text returned of result
	set sgs to selection
	set i to 0
	repeat with s in sgs
	   set i to i + 1
	   set track number of s to i
	   set artist of s to aname
	   set album of s to dname
	end repeat
end tell
back
xhtml 1.1 CSS 2.1 RSS 2.0
Made with a Mac Made with BBEdit Made with Brain

All documentation is under FDL and all source code is under BSD, unless differently stated.

24-mar-06