# Change Track values with Actions

**URL:** https://community.mp3tag.de/t/change-track-values-with-actions/7736
**Category:** Support
**Created:** [January 9, 2009, 8:47pm UTC](https://community.mp3tag.de/t/change-track-values-with-actions/7736 "2009-01-09T20:47:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Aythamie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/dc4da7/32.png) [@Aythamie](https://community.mp3tag.de/u/Aythamie)
#### Post date: [January 9, 2009, 8:47pm UTC](https://community.mp3tag.de/t/change-track-values-with-actions/7736/1 "2009-01-09T20:47:18Z")

</div>

Hi,

I've been reading the Regular Expressions thread and it's quite interesting.  
Many posts have helped me to get how I like them.

Now there is the last thing I can't seem to resolve.

I'd like to add an action (eg. regular expression) to get TRACK from 01, 02, 03 to 1/3,2/3, 3/3

Whole story:

I usually get my tags from Discogs, with the Discogs release ID.  
I like to have the files named: 01. artist - title.mp3 ( %track%. %artist% - %title%)  
And the track be such as these: eg. 1/3, 2/3, 3/3 ( [track]/[numtracks] )

When I start it use autonumbering to change the track to 01, 02, 03.  
Rename the file and then turn it 1/3, 2/3, 3/3.  
Today I discovered there was an easier was to do this: with Actions. 🙂  
The Regular Expressions Thread has helped a lot, but I can't seem to figure out how to get from 01, 02, 03 to 1/3,2/3, 3/3 with RegEx. ![:wacko:](https://community.mp3tag.de/uploads/default/original/1X/455ecca54df2b24f3c99cde256604242b1031da2.gif ":wacko:")

Could you help me please? 🙂

I'd also like to add the %discnumber%, I used to do it manually.  
Now for 1 disc albums I use actions: Format Value "DISCNUMBER": 1/1  
But for albums with more than one disc, I was thinking to add some if(x,y) string:

- If "%iscompilation% = 1 or yes" then value: 1/1
- If "%iscompilation% = 0 or no" then value: 1/x (with x an amount of discs)  
or something like that... 😳

No idea if this is even possible, anyone got an idea?

Greetings, Aythamie

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [January 11, 2009, 8:34pm UTC](https://community.mp3tag.de/t/change-track-values-with-actions/7736/2 "2009-01-11T20:34:02Z")

</div>

You don't have to run the track wizard twice, if you use $num(%track%,1) it turns i.e. 02/03 into 2

I wrote here how to turn track wizard into an action but it only works for one album/directory:  
[/t/7746/1](https://community.mp3tag.de/t/7746/1)

---

<div class="post-metadata">

### Author: ![Aythamie](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/dc4da7/32.png) [@Aythamie](https://community.mp3tag.de/u/Aythamie)
#### Post date: [January 11, 2009, 9:41pm UTC](https://community.mp3tag.de/t/change-track-values-with-actions/7736/3 "2009-01-11T21:41:58Z")

</div>

Thank you, it works perfectly now.

I'm still trying to find out how to get multiple cds to be named eg. 1/2 for cd1 in %discnumber% and 2/2 for cd2.

---

<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:21pm UTC](https://community.mp3tag.de/t/change-track-values-with-actions/7736/4 "2026-02-09T12:21:18Z")

</div>


