mini-Stumper

I'm sure there's an easy way to do this, but I'm having trouble with it. Suppose I have two tracks:

Bob Dylan - The Basement Tapes, CD 01 - 04 - Tears of Rage.mp3
The Beatles - White Album, CD 02 - 07 - Goodnight.mp3

How can I write I write a Filename-to-Tag Action that would read the Track values as 104 and 207, respectively?

Thanks.

Enter the field where you want to store the data twice:

e.g.

%artist% - %album, CD %track% - %track% - %title%

(also note that you have to enter the commas, hyphens and pieces of text that should not be stored in tags as part of the mask).

Do you need a tutorial "How can I write a Filename-to-Tag Action"?
Hmm, I think, for you as a long time Mp3tag user it would be waste of time.

Regarding the technical aspect of your request the following Formatstring would be the closest approach.
%DUMMY% - %DUMMY%, CD 0%TRACK% - %TRACK% - %DUMMY%
It will give
TRACK: 1 04
TRACK: 2 07
So in a second Action step the remaining space character needs replacing by nothing.

It seems that you should go completely the Action way.

Begin Action Group Test 2011#20110118.Track

Action #1
Actiontype 7: Import tag fields (guess values)
Source format: %_FILENAME%
Guessing pattern: %DUMMY%,÷CD÷%TEMP1%÷-÷%TEMP2%÷-÷%DUMMY%

Action #2
Actiontype 5: Format value
Field: TRACK
Formatstring: $num(%TEMP1%,1)$num(%TEMP2%,2)

Action #3
Actiontype 9: Remove fields
Fields to remove (semicolon separated): TEMP1;TEMP2

Note: Replace each special ÷ character with one space character.
End Action Group Test 2011#20110118.Track (3 Actions)

DD.20110118.0748.CET

My problem was that I couldn't get rid of the space between the two parts of the number, which I should have mentioned in my first post. But I believe that problem is now solved. Thanks to both of you.