# Auto-numbering from actions

**URL:** https://community.mp3tag.de/t/auto-numbering-from-actions/54729
**Category:** Mac
**Created:** [October 11, 2021, 8:26pm UTC](https://community.mp3tag.de/t/auto-numbering-from-actions/54729 "2021-10-11T20:26:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![uselessuser](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/4af34b/32.png) [@uselessuser](https://community.mp3tag.de/u/uselessuser)
#### Post date: [October 11, 2021, 8:26pm UTC](https://community.mp3tag.de/t/auto-numbering-from-actions/54729/1 "2021-10-11T20:26:19Z")

</div>

I'd like to use this one, but I'm a bit lost how and where I can use it.  
For me the best way would probaly be to put it in an action group.  
May someone can point me to a way on how to archive this?  
I'd like to apply the numbering automatically directly after the change of the genre (as shown in the screenshot).  
To run the auto numberfunction with an action would be also fine for me.

 ![Bildschirmfoto 2021-10-11 um 22.24.12](https://community.mp3tag.de/uploads/default/original/2X/4/492d41cabb79c346783e22559b57ef3641ad4acc.png)

---

<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: [October 11, 2021, 8:48pm UTC](https://community.mp3tag.de/t/auto-numbering-from-actions/54729/2 "2021-10-11T20:48:54Z")

</div>

I am not quite sure how MP3tag should "guess" the (correct) track number ...  
To get a sequential number:  
Action of the type "Format value" for TRACK  
Format string: %\_counter%

---

<div class="post-metadata">

### Author: ![uselessuser](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/u/4af34b/32.png) [@uselessuser](https://community.mp3tag.de/u/uselessuser)
#### Post date: [October 11, 2021, 9:58pm UTC](https://community.mp3tag.de/t/auto-numbering-from-actions/54729/3 "2021-10-11T21:58:33Z")

</div>

I'd like to run the action after i receive the trackinformation i.e. from discogs.  
So the files are already in the right order. I only would like to add automatically tracknumber/total and (probably not possible) discnumber/total.  
But anyway, it seemy like I'm on the right track with your answer.
