# How to assign track numbers and total tracks with action

**URL:** https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301
**Category:** Support
**Created:** [May 19, 2026, 4:52am UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301 "2026-05-19T04:52:20Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![bbme](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@bbme](https://community.mp3tag.de/u/bbme)
#### Post date: [May 19, 2026, 4:52am UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301/1 "2026-05-19T04:52:20Z")

</div>

I want to add an action that will format track field like this: 1/10

The Auto Numbering Wizard seems allow me to do this only for certain files. I will check “assign track numbers” and “save total count of tracks”, with the proper numeric information in the “begin at track number” and “save total count of tracks” boxes. It still will format the track field as “1 2 3 4” instead of “1/10 2/10 3/10 4/10”. I would like to be able to add an action that formats the tracks as “track number/all tracks” to my action group so that I can just get everything taken care of in one go. I hope that I explained this properly, any advice would be greatly appreciated. Thanks so much! 🙂

---

<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: [May 19, 2026, 5:18am UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301/2 "2026-05-19T05:18:22Z")

</div>

You could try e.g. this  
Format string: `%_counter%/%_total_files%`

There is no way to reset the counter on conditions, it only works, if you select the correct amount of files.

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [May 19, 2026, 5:19am UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301/3 "2026-05-19T05:19:20Z")

</div>

> [@bbme](#):
>
> I want to add an action that will format track field like this: 1/10

What audio format are these files? Note the for m4a files this is not possible. The spec for the Track and Disc fieldsis that they are to be integer values only, so the slash character is invalid.

---

<div class="post-metadata">

### Author: ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)
#### Post date: [May 19, 2026, 7:42am UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301/4 "2026-05-19T07:42:48Z")

</div>

> [@bbme](#):
>
> It still will format the track field as “1 2 3 4” instead of “1/10 2/10 3/10 4/10”.

As @MotleyG already wrote this is not possible for m4a files. If you use “save total count of tracks” in Mp3tag with these files the total amount of tracks is written in the tagfield TOTALTRACKS. You can see this field if you mark a file and open the the extended tag-view with ALT-T.

---

<div class="post-metadata">

### Author: ![bbme](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@bbme](https://community.mp3tag.de/u/bbme)
#### Post date: [May 19, 2026, 8:33pm UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301/5 "2026-05-19T20:33:03Z")

</div>

Yes, this is exactly what I was looking for. Thank you kindly!!🩷

---

<div class="post-metadata">

### Author: ![bbme](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@bbme](https://community.mp3tag.de/u/bbme)
#### Post date: [May 19, 2026, 8:33pm UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301/6 "2026-05-19T20:33:07Z")

</div>

Okay, this makes a lot of sense, I was wondering why it wasn’t working on certain formats. I didn’t piece together that it is most often when organizing M4A files that this issue presents itself. Thanks so much for the reply!

---

<div class="post-metadata">

### Author: ![bbme](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/e8c25b/32.png) [@bbme](https://community.mp3tag.de/u/bbme)
#### Post date: [May 19, 2026, 8:33pm UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301/7 "2026-05-19T20:33:13Z")

</div>

Thank you for the reply!

---

<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: [May 26, 2026, 8:33pm UTC](https://community.mp3tag.de/t/how-to-assign-track-numbers-and-total-tracks-with-action/71301/8 "2026-05-26T20:33:52Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
