Artist and title tags are already correct, so I am trying to correct the file name to include the - whilst retaining that 2002 020 as well
So i would end up with this:
2002 020 - Creed - My Sacrifice
I have played around with the actions using guess values, and i was able to populate the tags, using the file name, but cant figure out to do the reverse, to correct the file name with -
So there are no tags filled at the moment with year and chart number?
There is no official tag "chart number" in MP3Tag. The track-number ist not meant for this but meant for a track of an album. But if you want you can use it for this purpose or you can create a selfdefined chartnumer-tag.
Create an action group with 2 actions in a row:
Action to fill the tags of year and tracknumber
Type: Guess values
Source format: %_filename%
Guessing Pattern: %year% %track% - %dummy%
Action to rename the filename:
Type: Format Value
Field: _FILENAME
Format String: %year% %track% - %artist% - %title%
If you want to create the selfdefined tag chartnumber instead of using tracknumber you only have to replace %track% with %chartnumber% in the two actions.
Advice: You should experiment with these actions always with duplicates and not with originals as long as are not sure kwhether they work as you expect them to work.
There also are ways to directly change only the filename without creating tags first but I think it is alsway a better solution to have tags properly filled and then rename the filename with the tags as source.
Action: Format valueField : _FILENAMEFormatstring:$replace(%_filename%,%ARTIST%,%ARTIST%' -')... or ...Formatstring:$replace(%_filename%,%TITLE%,'- '%TITLE%)... or ...Formatstring:$replace(%_filename%,%ARTIST%''%TITLE%,%ARTIST%' - '%TITLE%)... or ...Formatstring:$left(%_filename%,$add($strstr(%_filename%,%ARTIST%),$len(%ARTIST%)))'- '%TITLE%