# In Aktion auf Tag zugreifen

**URL:** https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038
**Category:** Allgemein
**Created:** [March 13, 2006, 3:46pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038 "2006-03-13T15:46:35Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [March 13, 2006, 3:46pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/1 "2006-03-13T15:46:35Z")

</div>

Ich habe ein Tag namens CATALOG zu meinen Mp3s hinzugefügt. Wenn ich nun in einer Aktion mittels %CATALOG% darauf zugreifen möchte, geht dies nicht und im Ergebnis wird %CATALOG% eingesetzt statt des Inhalts dieses Tags.  
Was mache ich falsch?

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [March 13, 2006, 4:45pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/2 "2006-03-13T16:45:04Z")

</div>

Kannst Du die Aktion mal hier hochstellen?

---

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [March 13, 2006, 4:55pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/3 "2006-03-13T16:55:16Z")

</div>

Das ist für Ordner gedacht die folgendermaßen benannt sind, zb. "[playhouse 003] Künstler - Blabla". Zwischen die eckigen Klammern soll nun der Inhalt von %CATALOG% geschrieben werden.

Action #1:  
_Action type:_ **Replace with regular expressions**  
_Field:_ **\_DIRECTORY**  
_Regular expression:_ **([._]+)(\s._)**  
_Replace matches with:_ **[%Catalog%]$2**

[] case-sensitive comparison

Ich habe das Problem auch wenn ich auf andere selbst-erstellte tags zugreifen möchte.

Lieben Dank

[_cat_.mta](https://community.mp3tag.de/uploads/default/original/2X/7/729bac0d39e122a2e61b67b748238a16fffaf2aa.mta) (71 Bytes)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [March 13, 2006, 5:39pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/4 "2006-03-13T17:39:11Z")

</div>

Tut mir leid, aber die Platzhalter sind bei Ersetzen mit regulären Ausdrücken nicht verfügbar.

Viele Grüße,  
~ Florian

---

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [March 13, 2006, 9:41pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/5 "2006-03-13T21:41:27Z")

</div>

Verstehe. Dann werde ich versuchen, das irgendwie anders zustande zu kriegen.  
Danke!

---

<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 13, 2006, 9:55pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/6 "2006-03-13T21:55:21Z")

</div>

Du könntest "[playhouse 003]" über RegExp entfernen und dann mithilfe von Tagfelder Formatieren und "%catalog% %\_filename%" als Formatstring die Katalognummer einfügen.

---

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [March 14, 2006, 12:23pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/7 "2006-03-14T12:23:48Z")

</div>

> [@](#):
>
> Du könntest "[playhouse 003]" über RegExp entfernen und dann mithilfe von Tagfelder Formatieren und "%catalog% %\_filename%" als Formatstring die Katalognummer einfügen.
> 
> \<{POST\_SNAPBACK}\>

Bei dem Versuch dies zu machen, tritt ein schwerer Ausnahmefehler auf. Der erste Schritt funktioniert und beim zweiten stürzt Mp3tag dann ab. Da soll einfach nur %catalog% in eckigen Klammern vor den Verzeichnisnamen gesetzt werden.

Aktion #1:  
_Aktionstyp:_ **Ersetzen mit regulären Ausdrücken**  
_Feld:_ **\_DIRECTORY**  
_Regulärer Ausdruck:_ **([._]+)(\s._)**  
_Treffer ersetzen durch:_ **$2**

[] Groß-/Kleinschreibung berücksichtigen

Aktion #2:  
_Aktionstyp:_ **Tag-Felder formatieren**  
_Feld:_ **\_DIRECTORY**  
_Formatstring:_ **$validate([%catalog%]%_directory% ,_)**

---

<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 14, 2006, 1:09pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/8 "2006-03-14T13:09:43Z")

</div>

Wenn schon, muss es **$validate('['%catalog%']'%_directory% ,_)** heißen.

---

<div class="post-metadata">

### Author: ![Ydope](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/y/6f9a4e/32.png) [@Ydope](https://community.mp3tag.de/u/Ydope)
#### Post date: [March 14, 2006, 4:36pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/9 "2006-03-14T16:36:41Z")

</div>

Was heißt hier "Wenn schon..."? Das sind essentielle Aktionen für mich! 😛  
Es funktioniert jetzt jedenfalls perfekt.  
Vielen Dank, komme da immer etwas durcheinander mit regulären Ausdrücken/Platzhaltern, etc.

---

<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 14, 2006, 7:00pm UTC](https://community.mp3tag.de/t/in-aktion-auf-tag-zugreifen/3038/10 "2006-03-14T19:00:12Z")

</div>

Freut mich, dass es nun klappt. 😉
