# Assign Track Numbers as part of an Action Group

**URL:** https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055
**Category:** Mac
**Created:** [January 25, 2022, 7:54pm UTC](https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055 "2022-01-25T19:54:14Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rorytate](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rorytate/32/7153_2.png) [@rorytate](https://community.mp3tag.de/u/rorytate)
#### Post date: [January 25, 2022, 7:54pm UTC](https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055/1 "2022-01-25T19:54:14Z")

</div>

Sorry if this has been discussed before; i looked around and couldn't find it…

Is there a way to execute the Assign Track Numbers process within the steps of an Action/Action Group? It would save some steps in our workflow if there were a way that it could.

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 25, 2022, 7:55pm UTC](https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055/2 "2022-01-25T19:55:54Z")

</div>

You can add a sequential number with  
Format tag field for TRACK  
Format string: %\_counter%

---

<div class="post-metadata">

### Author: ![rorytate](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rorytate/32/7153_2.png) [@rorytate](https://community.mp3tag.de/u/rorytate)
#### Post date: [January 25, 2022, 8:47pm UTC](https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055/3 "2022-01-25T20:47:26Z")

</div>

Thank you; that might work if i can figure out how to add a leading zero to the single digits…

Yup! It seems that 'Format tag field "TRACK": $num(%\_counter%,2)' works… Awesome!

---

<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 25, 2022, 8:53pm UTC](https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055/4 "2022-01-25T20:53:43Z")

</div>

> [@rorytate](#):
>
> add a leading zero to the single digits

this will not work for mp4 files. mp4 tags don't have a leading zero.

---

<div class="post-metadata">

### Author: ![rorytate](https://community.mp3tag.de/user_avatar/community.mp3tag.de/rorytate/32/7153_2.png) [@rorytate](https://community.mp3tag.de/u/rorytate)
#### Post date: [January 25, 2022, 9:01pm UTC](https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055/5 "2022-01-25T21:01:10Z")

</div>

When i apply it to .m4a files, it still works, but just ignores my request for a leading zero, which is fine in this application.

---

<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 25, 2022, 9:02pm UTC](https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055/6 "2022-01-25T21:02:32Z")

</div>

I just wanted to add that piece of information so that you are not disappointed in the end. But you found that out now, so everything is fine.

---

<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 24, 2022, 9:03pm UTC](https://community.mp3tag.de/t/assign-track-numbers-as-part-of-an-action-group/56055/7 "2022-02-24T21:03:11Z")

</div>

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