I have a list of tracks which I would like to add a sequence number. Like this:
FROM
Mass - Devotions before Mass - Antiphon. Kyrie eleison.mp3
Mass - Devotions before Mass - Hymn and Psalm.mp3
Mass - Devotions before Mass - Responsory, 'Alleluia'.mp3
TO
Mass - 01 Devotions before Mass - Antiphon. Kyrie eleison.mp3
Mass - 02 Devotions before Mass - Hymn and Psalm.mp3
Mass - 03 Devotions before Mass - Responsory, 'Alleluia'.mp3
I tried the following:
Convert > Filename-Filename
%1 - $num(%track%,2) %2
but only got this:
Mass - 00 Devotions before Mass - Antiphon. Kyrie eleison.mp3
Mass - 00 Devotions before Mass - Hymn and Psalm.mp3
Mass - 00 Devotions before Mass - Responsory, 'Alleluia'.mp3
The filename is one property, usually managed by the file system, the TITLE field is something that you edit with MP3tag.
The field TRACK is a different field and separate from TITLE.
Unless you have filled the field TRACK (e.g. with the track numbering assistant) you will always get a "0" as there is nothing in the field TRACK.
If you have not yet filled the Tags, why not try it with Convert>Filename-Tag before you add data that is not separated from the rest by a unique separator character?
Format string: %artist% - %album% - %title%
Then you add the numbers and then you construct a new filename with Convert>Tag-Filename
Format string: %artist% _ $num(%track%,2) _ %album% _ %title%
(I think the underscore is a better separator than the hyphen as the hypen us frequently part of the field data)
In addition, I do not think that you can mix the %1..%9 address scheme with other variables.
You would have to use an action of the type "Format value" or Convert>Tag-Tag and a regular expression
As I see it, you write the contents of TITLE as filename.
You could use Convert-Tag-Filename as this allows to enter format strings with full access to scripting functions and field variables - which Convert>Filename-Filename does not have.
To get the number inserted, use Convert>Tag-Filename with the suggest the following
Format string: $regexp(%title%,(.*?) - (.*),$1 - $num(%track%,2) $2)
which uses TRACK as number or if it should become a different sequence number:
Format string: $regexp(%title%,(.*?) - (.*),$1 - $num(%_counter%,2) $2)
Thank you!!
I'm not up on scripting. So I'm doing a lot of experimenting, which takes up a lot of time (something that we have a lot of at the moment, unfortunately). But, thanks to your help I'm learning bit by bit.
Bleib gesund!!