# Share your custom Actions

**URL:** https://community.mp3tag.de/t/share-your-custom-actions/1722
**Category:** General Discussion
**Created:** [February 21, 2005, 2:01am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722 "2005-02-21T02:01:42Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Sammy20](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@Sammy20](https://community.mp3tag.de/u/Sammy20)
#### Post date: [February 21, 2005, 2:01am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/1 "2005-02-21T02:01:42Z")

</div>

Just wondering if anyone has any handy custom actions they created for mp3tag. I'm instrested in looking in ways to clean up my mp3 files.

Please share.

---

<div class="post-metadata">

### Author: ![freekey](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/779978/32.png) [@freekey](https://community.mp3tag.de/u/freekey)
#### Post date: [February 21, 2005, 2:32am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/2 "2005-02-21T02:32:19Z")

</div>

> [@](#):
>
> Just wondering if anyone has any handy custom actions they created for mp3tag. I'm instrested in looking in ways to clean up my mp3 files.
> 
> Please share.
> 
> \<{POST\_SNAPBACK}\>

I've created one action to rename track in the format of 0n like from 1 to 01, 2 to 02 and so on. But I'm in my office right now. I'll bring it tomorrow. 🙂

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [February 21, 2005, 4:49am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/3 "2005-02-21T04:49:52Z")

</div>

> [@](#):
>
> I've created one action to rename track in the format of 0n like from 1 to 01, 2 to 02 and so on. But I'm in my office right now. I'll bring it tomorrow. 🙂
> 
> \<{POST\_SNAPBACK}\>

A "format values" action applied to the TRACK field with the following format string should do what you said: $num(%track%,2). 🙂

---

<div class="post-metadata">

### Author: ![freekey](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/779978/32.png) [@freekey](https://community.mp3tag.de/u/freekey)
#### Post date: [February 21, 2005, 6:16am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/4 "2005-02-21T06:16:19Z")

</div>

> [@](#):
>
> A "format values" action applied to the TRACK field with the following format string should do what you said: $num(%track%,2). 🙂
> 
> \<{POST\_SNAPBACK}\>

A very easy one, huh? ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

---

<div class="post-metadata">

### Author: ![Sammy20](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/58f4c7/32.png) [@Sammy20](https://community.mp3tag.de/u/Sammy20)
#### Post date: [February 21, 2005, 8:38am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/5 "2005-02-21T08:38:03Z")

</div>

The only one I got is to turn all double and triple empty spaces into a single space.

[#6]  
T=2  
F=\_ALL  
1=  
2=  
3=0|0

---

<div class="post-metadata">

### Author: ![Logan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/278dde/32.png) [@Logan](https://community.mp3tag.de/u/Logan)
#### Post date: [February 24, 2005, 11:36pm UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/6 "2005-02-24T23:36:21Z")

</div>

> [@](#):
>
> A "format values" action applied to the TRACK field with the following format string should do what you said: $num(%track%,2). 🙂
> 
> \<{POST\_SNAPBACK}\>

Sebastion -

The only problem with that approach is that if the track is blank, you will end up wth ' 00 '.

Instead of only selecting those tracks that require formatting, I came up with this approach:

Type: Format Value  
Field: TRACK  
Formatstring:$ifgreater(%track%,0,$NUM(%Track%,2),)

This way, the TRACK value is only formatted if it is greater than zero.

---

<div class="post-metadata">

### Author: ![freekey](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/779978/32.png) [@freekey](https://community.mp3tag.de/u/freekey)
#### Post date: [February 25, 2005, 8:00am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/7 "2005-02-25T08:00:39Z")

</div>

> [@](#):
>
> Sebastion -
> 
> The only problem with that approach is that if the track is blank, you will end up wth ' 00 '.
> 
> Instead of only selecting those tracks that require formatting, I came up with this approach:
> 
> Type: Format Value  
> Field: TRACK  
> Formatstring:$ifgreater(%track%,0,$NUM(%Track%,2),)
> 
> This way, the TRACK value is only formatted if it is greater than zero.
> 
> \<{POST\_SNAPBACK}\>

thanks for that useful info.

but well, anyway I only do this action on selected mp3s that comes with track no. 🙂

 

p/s: sorry, forgot that i cannot post in bold, 🕶

---

<div class="post-metadata">

### Author: ![Logan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/278dde/32.png) [@Logan](https://community.mp3tag.de/u/Logan)
#### Post date: [February 25, 2005, 12:18pm UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/8 "2005-02-25T12:18:26Z")

</div>

> [@](#):
>
> anyway I only do this action on selected mp3s that comes with track no. :slight\_smile:
> \<{POST\_SNAPBACK}\>

If that is the case, then you are correct, this is not necessary.

I have a set up actions that I run when I first load up a batch of 'dirty' files that have yet to be updated to the standard that I use. With this action, I can run it blind on tracks and not worry about ending up with 00 track numbers.

---

<div class="post-metadata">

### Author: ![willmcelwain](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/w/3e96dc/32.png) [@willmcelwain](https://community.mp3tag.de/u/willmcelwain)
#### Post date: [March 5, 2005, 2:45am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/9 "2005-03-05T02:45:47Z")

</div>

Here are some standard actions (attached) to replace common [HTML 4.0 entities](http://www.w3schools.com/html/html_entitiesref.asp) (specifically: ', ", &, \<, \>, , and ©).

**Don't** overwrite your Standard.mta file (in the Application Data\Mp3tag\data\actions directory) if you've added custom actions already! You will lose your custom actions. Instead, open up _my_ Standard.mta file, copy actions #7 to #20, and paste them into _your_ Standard.mta file (renumbering them if you have to).

Will

[Standard.mta](https://community.mp3tag.de/uploads/default/original/2X/8/8e4a9c99a3e83964999458396a9168384cef4356.mta) (883 Bytes)

---

<div class="post-metadata">

### Author: ![zoidbergslo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/c6cbf5/32.png) [@zoidbergslo](https://community.mp3tag.de/u/zoidbergslo)
#### Post date: [March 26, 2005, 2:32pm UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/10 "2005-03-26T14:32:08Z")

</div>

> [@](#):
>
> Sebastion -
> 
> The only problem with that approach is that if the track is blank, you will end up wth ' 00 '.
> 
> Instead of only selecting those tracks that require formatting, I came up with this approach:
> 
> Type: Format Value  
> Field: TRACK  
> Formatstring:$ifgreater(%track%,0,$NUM(%Track%,2),)
> 
> This way, the TRACK value is only formatted if it is greater than zero.
> 
> \<{POST\_SNAPBACK}\>

Thanks for this. Is it possible to add something like 01 **/12** if album have 12 tracks.

---

<div class="post-metadata">

### Author: ![Sebastian\_Mares](https://community.mp3tag.de/user_avatar/community.mp3tag.de/sebastian_mares/32/9285_2.png) [@Sebastian\_Mares](https://community.mp3tag.de/u/Sebastian_Mares)
#### Post date: [March 26, 2005, 5:09pm UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/11 "2005-03-26T17:09:54Z")

</div>

> [@](#):
>
> Thanks for this. Is it possible to add something like 01 **/12** if album have 12 tracks.
> 
> \<{POST\_SNAPBACK}\>

You can always use the track-numbering wizard for that. ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

---

<div class="post-metadata">

### Author: ![zoidbergslo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/c6cbf5/32.png) [@zoidbergslo](https://community.mp3tag.de/u/zoidbergslo)
#### Post date: [March 26, 2005, 6:49pm UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/12 "2005-03-26T18:49:00Z")

</div>

> [@](#):
>
> You can always use the track-numbering wizard for that. ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")
> 
> \<{POST\_SNAPBACK}\>

Thanks

---

<div class="post-metadata">

### Author: ![Buzz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/ee59a6/32.png) [@Buzz](https://community.mp3tag.de/u/Buzz)
#### Post date: [April 1, 2005, 12:25am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/13 "2005-04-01T00:25:23Z")

</div>

> [@](#):
>
> ... handy custom actions they created for mp3tag...

[Here](http://mercury.walagata.com/w/eight/Custom_1.mta)'s one.

It uses a string you put in the comment field to sort selected files, and renames the selected files according to what's in the title field. The format for this string is:

genre/subgenre/cd type/disc number

For example: "jazz/bop/1/1" means genre: jazz, subgenre: Bebop, cd type: regular (not a compilation), disc: 1. Running the action would place the selected files in:

\Jazz-=Bebop & Cool=-\artist\album\Disc nr.\track + title.mp3

I made it because my MP3 player doesn't allow me to scroll through long lists easily; using subgenres considerably shorten such lists.

---

<div class="post-metadata">

### Author: ![freekey](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/779978/32.png) [@freekey](https://community.mp3tag.de/u/freekey)
#### Post date: [August 24, 2005, 2:38am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/14 "2005-08-24T02:38:00Z")

</div>

I've another one custom action to trim extra spaces in the end of every field.

For example, you might notice after you apply the Tag -\> Filename action, it ends up with something like this.. True Blue - Madonna - Papa Don't Preach .mp3 though you expect it to be True Blue - Madonna - Papa Don't Preach.mp3

So, this is due to the fact that there are some extra spaces after "True Blue", "Madonna" & "Papa Don't Preach" though it appears normal.

So, I use regular expression method to remove the extra spaces.

The regular expression is "\s$" replace it with nothing -"".

I hope that helps. Maybe it can be modified to trim unnecessary spaces on the front-side too.. 🙂

---

<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: [August 24, 2005, 5:59am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/15 "2005-08-24T05:59:35Z")

</div>

That's already written in the [FAQ](https://community.mp3tag.de/t/967/10) 🙂

---

<div class="post-metadata">

### Author: ![Sabio](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@Sabio](https://community.mp3tag.de/u/Sabio)
#### Post date: [January 4, 2006, 1:47pm UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/16 "2006-01-04T13:47:03Z")

</div>

I've created actions for translit-detranslit conversion for russian characters.  
See attachment.

[translit.zip](https://community.mp3tag.de/uploads/default/original/2X/3/3ed09f8d0778ffe4e4b18cc06d418b5ab75343a1.zip) (1.31 KB)

---

<div class="post-metadata">

### Author: ![BlackRussian](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/c68b51/32.png) [@BlackRussian](https://community.mp3tag.de/u/BlackRussian)
#### Post date: [April 17, 2006, 4:13pm UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/17 "2006-04-17T16:13:19Z")

</div>

> [@](#):
>
> I've created actions for translit-detranslit conversion for russian characters.  
> See attachment.
> 
> \<{POST\_SNAPBACK}\>

I've created the action to convert to translit cyrillic filenames. Attached...

[filename2translit.mta](https://community.mp3tag.de/uploads/default/original/2X/1/15e25d83660ccfce81734974e636c17c8e266454.mta) (3.21 KB)

---

<div class="post-metadata">

### Author: ![ffolke](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/8edcca/32.png) [@ffolke](https://community.mp3tag.de/u/ffolke)
#### Post date: [October 19, 2007, 9:23pm UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/18 "2007-10-19T21:23:06Z")

</div>

I just made a bunch of action groups, some derived from ones already available but almost all have some little change to make things more exact (at least for my collection).

- Trim Trailing/Preceding/Extra Space
- Spacing…(Proper, Amount)
- Title Case (It’s a Smart Conversion)
- Namings (O’Brian, McCarthy, MacDonald)
- DJ, vs., MC, EP, CD, XVI. (Upper Case)
- Contraction- Add Apostrophe’s (Can’t, let’s)

[Download All (zip)](http://liquidparallax.com/files/actions/mp3actions.zip)

All of them are explained at [my webpage](http://liquidparallax.com/2007/10/19/mp3tag-actions-empower-your-digital-collection/)

---

<div class="post-metadata">

### Author: ![TheChipstar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/thechipstar/32/200_2.png) [@TheChipstar](https://community.mp3tag.de/u/TheChipstar)
#### Post date: [October 20, 2007, 4:44am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/19 "2007-10-20T04:44:58Z")

</div>

One that I run on my whole MP3 library to standardise them...

- Keeps all the fields I want and deletes the others  
Keeps: (TITLE;ARTIST;ALBUM;COMMENT;GENRE;TRACK;YEAR;LYRICS;COVER;COMMENT ITUNPGAP;ALBUMSORTORDER;TITLESORTORDER;PERFORMERSORTORDER)

- Import cover art from file path (folder.jpg)

- Add comment ("EAC/LAME ~VBR 0")

- Adds the appropriate disc number (1/1, 1/2, 2/2)

These next ones are a case conversion using '%caps2(string...)' found here: [https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting)

- Advanced case conversion on the \_FileName field
- Advanced case conversion on the Title field
- Advanced case conversion on the Artist field
- Advanced case conversion on the Album field
- Advanced case conversion on the Comment field

These next ones help iTunes with sorting

- Adds the year of album to ALBUMSORTER field
- Adds the disc number/track number to TITLESORTER field  
(ie: 1/1/1/10; which means - disc one of one, track one of ten)
- Adds the Artist to PERFORMERSORTER field minus the "The "  
(ie: 'The Beatles' becomes 'Beatles')

All in one simply button.  
Then I just make other actions for more specific needs.

(File can be opened in Notepad.exe to view  
or can be copied to: "Documents and Settings~USER~\Application Data\Mp3tag\data\actions"  
[where '~USER~' is, put your user's name])

[Standardize.mta](https://community.mp3tag.de/uploads/default/original/2X/8/8c15dd02270e9e062060370b599f6528100faa42.mta) (785 Bytes)

---

<div class="post-metadata">

### Author: ![TheChipstar](https://community.mp3tag.de/user_avatar/community.mp3tag.de/thechipstar/32/200_2.png) [@TheChipstar](https://community.mp3tag.de/u/TheChipstar)
#### Post date: [October 21, 2007, 12:36am UTC](https://community.mp3tag.de/t/share-your-custom-actions/1722/20 "2007-10-21T00:36:02Z")

</div>

One I just discovered now...

If you want both iTunes and your iPod to play an album gaplessly, try this:

Action - Format Value  
Field - COMMENT ITUNPGAP  
Format String - 1

[Next page](https://community.mp3tag.de/t/share-your-custom-actions/1722.md?page=2)
