# mini-Stumper

**URL:** https://community.mp3tag.de/t/mini-stumper/11459
**Category:** Support
**Created:** [January 18, 2011, 2:20am UTC](https://community.mp3tag.de/t/mini-stumper/11459 "2011-01-18T02:20:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nitz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/bc8723/32.png) [@nitz](https://community.mp3tag.de/u/nitz)
#### Post date: [January 18, 2011, 2:20am UTC](https://community.mp3tag.de/t/mini-stumper/11459/1 "2011-01-18T02:20:57Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [January 18, 2011, 5:20am UTC](https://community.mp3tag.de/t/mini-stumper/11459/2 "2011-01-18T05:20:25Z")

</div>

> [@nitz](#):
>
> ..- Bob Dylan - The Basement Tapes, CD 01 - 04 - Tears of Rage.mp3  
> The Beatles - White Album, CD 02 - 07 - Goodnight.mp3

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).

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [January 18, 2011, 5:46am UTC](https://community.mp3tag.de/t/mini-stumper/11459/3 "2011-01-18T05:46:37Z")

</div>

> [@nitz](#):
>
> 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.

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

---

<div class="post-metadata">

### Author: ![nitz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/bc8723/32.png) [@nitz](https://community.mp3tag.de/u/nitz)
#### Post date: [January 18, 2011, 6:13am UTC](https://community.mp3tag.de/t/mini-stumper/11459/4 "2011-01-18T06:13:34Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/mini-stumper/11459/5 "2026-02-09T12:22:50Z")

</div>


