# Export and numbering actions

**URL:** https://community.mp3tag.de/t/export-and-numbering-actions/14188
**Category:** Support
**Created:** [December 2, 2012, 2:11pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188 "2012-12-02T14:11:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![aax](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@aax](https://community.mp3tag.de/u/aax)
#### Post date: [December 2, 2012, 2:11pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/1 "2012-12-02T14:11:12Z")

</div>

Is it possible to create actions that would do what Export button and Autonumbering Wizard do?

---

<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: [December 2, 2012, 2:18pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/2 "2012-12-02T14:18:19Z")

</div>

> [@aax](#):
>
> Is it possible to create actions that would do what ... Autonumbering Wizard ...

If you do not rely on the resetting to zero for each directory, you can do it with a format Tag-field action for %\_counter%.

Format tag-Field TRACK with  
$num(%\_counter%,2)

Also there is an action called "Export" where you can specify the template and the name of the output.

---

<div class="post-metadata">

### Author: ![aax](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@aax](https://community.mp3tag.de/u/aax)
#### Post date: [December 2, 2012, 3:26pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/3 "2012-12-02T15:26:13Z")

</div>

Thanks, I completely missed the Export action.

As for the numbering, is there a string to number tracks in the form of track/totaltracks?

---

<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: [December 2, 2012, 3:55pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/4 "2012-12-02T15:55:43Z")

</div>

I am afraid not.  
MP3tag does not know how many tracks will come when it carries out an action. It only looks at one file at the time.

---

<div class="post-metadata">

### Author: ![aax](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@aax](https://community.mp3tag.de/u/aax)
#### Post date: [December 2, 2012, 4:04pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/5 "2012-12-02T16:04:59Z")

</div>

And how about another action that would add the number of files that are open in Mp3Tag to track field? Is something like that possible?

---

<div class="post-metadata">

### Author: ![aax](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@aax](https://community.mp3tag.de/u/aax)
#### Post date: [December 2, 2012, 5:42pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/6 "2012-12-02T17:42:48Z")

</div>

After some experimenting I've found a way, using Information Fields and "total\_files".  
Since I usually work on one album at a time I don't need Autonumbering Wizards's "reset counter for each directory" function.

Action: Format value  
Field: TRACK  
Format string: %\_counter%/%\_total\_files% _(I don't use zero padding in track fields)_

Now, am I wrong in thinking that **%\_max\_counter%** should have the same effect if I put it instead of **%\_total\_files%**? Because when I do that, I don't get any value after **/**.

---

<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: [December 2, 2012, 5:44pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/7 "2012-12-02T17:44:04Z")

</div>

> [@aax](#):
>
> ... add the number of files that are open in Mp3Tag to track field? ...

Action: Format value  
Tag-Field: TRACK  
Format string:

**$num(%TRACK%,$ifgreater($len(%\_total\_files%),2,$len(%\_total\_files%),2))'/'$num(%\_total\_files%,$ifgreater($len(%\_total\_files%),2,$len(%\_total\_files%),2))**

... or ...

**$num($add(1,%\_counter%),$ifgreater($len(%\_total\_files%),2,$len(%\_total\_files%),2))'/'$num(%\_total\_files%,$ifgreater($len(%\_total\_files%),2,$len(%\_total\_files%),2))**

Example 1  
Files loaded in Mp3tag: 8  
Selected files: 8  
TRACK=01/08 ... TRACK=08/08

Example 2  
Files loaded in Mp3tag: 1083  
Selected files: 1024  
TRACK=0001/1024 ... TRACK=1024/1024

DD.20121202.1950.CET

---

<div class="post-metadata">

### Author: ![aax](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/edb3f5/32.png) [@aax](https://community.mp3tag.de/u/aax)
#### Post date: [December 2, 2012, 6:22pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/8 "2012-12-02T18:22:54Z")

</div>

Thanks Detlev, but I don't need such a complicated string. The action I posted in post #6 is good enough for me considering I mostly work with one album at a time.

But my question from that post still remains. Shouldn't the **%\_max\_counter%** work the same in the place of **%\_total\_files%** in the action from that post?

---

<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: [December 2, 2012, 8:34pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/9 "2012-12-02T20:34:19Z")

</div>

No, %\_max\_counter% is only designed for the export tool.

---

<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:24pm UTC](https://community.mp3tag.de/t/export-and-numbering-actions/14188/10 "2026-02-09T12:24:12Z")

</div>


