Moving Track & Discnumber from Comment field

I've got tracknumbers in the wrong field (Comment) on a large number of FLAC filesets, and would love it if some kind person would tell me how to fix this easiest please.

On some filesets
(1) the tracknumbers look like T01...T12, on others
(2) the tracknumbers look like d1t01...d1t12...d2t01...d2t14

So:

In case #1 I'd like to MOVE* the last two characters of Comment to Track and set Discnumber to "1".

In case #2 I'd like to MOVE the last two characters of Comment to Track and MOVE the second character of Comment to Discnumber.

*By move I mean after the operation I'd like the Comment field left empty.

Try an action of the type "Guess value"
Source: %comment%
Pattern: %dummy%T%track%

Try an acion of the type "Guess value"
Source: %comment%
Pattern: d%discnumber%T%track%
These actions copy the data.
If this was the only data in COMMENT, then delete the field..

Thank you VERY much, ohrenkino!

I deeply appreciate your help, the Actions I made work great. It's so generous of you to help people who like me (even though I'm a programmer!) are lost with mp3tag's powerful functionality.

1 Like