# Action Type Numbers

**URL:** <https://community.mp3tag.de/t/action-type-numbers/15436>\
**Category:** Support\
**Created:** [January 27, 2014, 4:37pm UTC](https://community.mp3tag.de/t/action-type-numbers/15436 "2014-01-27T16:37:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrishirst](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@chrishirst](https://community.mp3tag.de/u/chrishirst)\
**Post date:** [January 27, 2014, 4:37pm UTC](https://community.mp3tag.de/t/action-type-numbers/15436/1 "2014-01-27T16:37:21Z")

</div>

Just curiosity, but is there a reference to what the n indicates in the MTA files for the action type? As in T= n.

My reason for asking is that I've been editing the scripting actions in Geany or Notepad++ simply because it's a bit difficult editing or creating something like this;

```
1=$ifgreater(%discnumber%,0,%discnumber%,$ifgreater(%dir_temp%,0,%discnumber%,$ifgreater( $regexp($mid(%_directory,$add($strstr($upper(%_directory,DISC),DISC),1),6),\\\\D*,),0, $regexp($mid(%_directory,$add($strstr($upper(%_directory,DISC),DISC),1),6),\\\\D*,),)))In the MP3Tag script editor.

```

(Extra spaces added so the single line of text doesn't "break out" of the floated code box )

Just in case you are wondering, it finds the word 'disc' in the parent directory of the files then returns the numeric value that follows it.  
There are three similar ones that check for CD in the directory name and 'disc' or 'CD' in the album field.

WHY??? I hear you ask, and it's because I'm restructuring my rather random naming conventions when I originally converted my vinyl collection to digital

---

<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:** [January 27, 2014, 6:29pm UTC](https://community.mp3tag.de/t/action-type-numbers/15436/2 "2014-01-27T18:29:58Z")

</div>

> [@Chris Hirst](#):
>
> Just curiosity, but is there a reference to what the n indicates in the MTA files for the action type?  
> As in T= n.

No there is no official reference.  
Following is my list of the Mp3tag action types in german.

**1 : Schreibweise. 2 : Ersetzen. 3 : Dateiname auf 64 Zeichen verkürzen. 4 : Ersetzen mit regulärem Ausdruck. 5 : Tagfeld formatieren 6 : Doppelte Tagfelder entfernen 7 : Tagfelder importieren. 8 : Doppelte Tagfelder zusammenfassen. 9 : Tagfelder entfernen. 10 : Tagfelder entfernen außer. 11 : Codepage konvertieren. 12 : Coverbild importieren. 13 : Coverbild exportieren. 14 : Textdatei importieren. 15 : Export. 16 : Tagfelder aufteilen.**

DD.20140127.2030.CET

---

<div class="post-metadata">

**Author:** ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)\
**Post date:** [January 27, 2014, 8:11pm UTC](https://community.mp3tag.de/t/action-type-numbers/15436/3 "2014-01-27T20:11:02Z")

</div>

1 = Case conversion

2 = Replace  
3 = (unused)  
4 = Replace with regular expression  
5 = Format value  
6 = Remove duplicate fields  
7 = Guess value  
8 = Merge duplicate fields  
9 = Remove fields  
10 = Remove fields except  
11 = Convert codepage  
12 = Import cover from file  
13 = Export cover to file  
14 = Import text file  
15 = Export  
16 = Split field by separator

---

<div class="post-metadata">

**Author:** ![chrishirst](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/4af34b/32.png) [@chrishirst](https://community.mp3tag.de/u/chrishirst)\
**Post date:** [January 27, 2014, 10:03pm UTC](https://community.mp3tag.de/t/action-type-numbers/15436/4 "2014-01-27T22:03:59Z")

</div>

Cheers! Saves me a bit of reverse engineering.

---

<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:** [January 6, 2021, 2:28pm UTC](https://community.mp3tag.de/t/action-type-numbers/15436/5 "2021-01-06T14:28:32Z")

</div>

Closed on January 6, 2021, 2:28pm UTC

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