# Programming Macros

**URL:** https://community.mp3tag.de/t/programming-macros/50734
**Category:** General Discussion
**Created:** [November 9, 2020, 9:58am UTC](https://community.mp3tag.de/t/programming-macros/50734 "2020-11-09T09:58:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dotcom](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/df705f/32.png) [@Dotcom](https://community.mp3tag.de/u/Dotcom)
#### Post date: [November 9, 2020, 9:58am UTC](https://community.mp3tag.de/t/programming-macros/50734/1 "2020-11-09T09:58:36Z")

</div>

Hello

I wondering if there is a way of adding/programming macros to run a series of commands.

For example:

The ability to select all files, run pre-defined actions, auto-renumber the tracks (and discs if appropriate) and then rename the files using a pre-defined format e.g. %discnumber% - %track% - %title%

For me, this would be an action to capitalize the first letter of each word in the title, artist and album fields, renumber the tracks and discs and finally reformat the filename.

---

<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: [November 9, 2020, 10:02am UTC](https://community.mp3tag.de/t/programming-macros/50734/2 "2020-11-09T10:02:59Z")

</div>

> [@Dotcom](#):
>
> I wondering if there is a way of adding/programming macros to run a series of commands.

There is the function of Action groups in which you can put together a number of single actions.  
Then there is the option to select a number of action groups in the Actions dialogue (see the check boxes) which are then executed top to bottom in the given order.  
You cannot select files with an action.  
You cannot renumber files in the same way as the track numbering wizard does (there is no reset of the number when the folder changes) but it is possible to get an increasing number.  
see e.g. here:

> [@New feature suggestion: incremental counter (in the title field.)](https://community.mp3tag.de/t/new-feature-suggestion-incremental-counter-in-the-title-field/8855):
>
> Thank you for a fine product! I use it frequently. I would like to propose a new feature: an incremental counter in the title field. This could be done in such a way: some input whch occurs often in my kind of MP3-tagging: [title-field] cd1.%i Where %i is a counter which gets automatically incremented, so you get file titles like cd1.01 or until e.g.cd1.25, in the case of 25 mp3's ripped from CD1. where %i starts at number 01 (indicated by the user) This happens often when you don't know an…
