Set field = 2nd & 3rd characters of filename

How do I set the track field = the 2nd & 3rd characters of the filename?

I'm an mp3tab noob. I've got tracks where the filenames begin like

101
102
103
...
123
124
201
202
203
...
223
224

where the first character is the Discnumber (I loaded that field simply highlighting the disc's rows and entering 1 [or 2] in the Discnumber field and selecting Save.)

I love mp3tag and look forward to learning more please!

Edit: Now I've got another fileset in which I need to just delete the first character in the Track field (because it already got set to a three digit number starting where the first character is the Discnumber).

I guess maybe what I really need is to know how to create custom actions; I've been googling and playing with it but haven't figured it out.

Import the whole number into TRACK.
Then use an action of the type "Format value" for TRACK
Format string: $num($mod(%track%,100),2)

Thank you very much for the help, ohrenkino! It worked perfectly of course.

Before I posted I read dozens of forum threads, and tested a simpler one (to 0-pad track). I'm a programmer, so I thought maybe it would just take a little time to learn the syntax, but wow, I'm very impressed by how powerful actions can be.

I'm VERY appreciative to ohrenkino and all the others who provide people with the code they need. Particularly because I couldn't google any primers on how to DIY. I feel kinda guilty about relying on ohrenkino's kindness, but very much appreciate all the precious time they saved me!

2 Likes