Sense or Nonsense!?

27.06.2009

Autonumbering of iTunes playlist tracks

Filed under: Misc — Ephraim @ 22:08

So, I needed to rename MANY iTunes tracks to the format of
001
002
003
004
a.s.o.

Started doing 20 tracks per day, I got frustrated to do it after the third day. And as I’m a developer, I tought there must be an easier way to do this.
Wonder what, there is an easier way!!!! :) …. Thanks to AppleScript.

Here it is, just create a custom playlist with name “temp” and you are done, after executing this AppleScript:

tell application "iTunes"
set oldfi to fixed indexing
set fixed indexing to true
repeat with i from 1 to count tracks of playlist "temp"
set aTrack to track i of playlist "temp"
set name of aTrack to (do shell script "printf %.3d " & i)
end repeat
set fixed indexing to oldfi
end tell

Have Fun! Life is to short to do this by hand :P

Ciao Ephraim

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress