# Author/book/\*.mp3 - autor as tag: artist

**URL:** https://community.mp3tag.de/t/author-book-mp3-autor-as-tag-artist/54710
**Category:** General Discussion
**Created:** [October 11, 2021, 9:47am UTC](https://community.mp3tag.de/t/author-book-mp3-autor-as-tag-artist/54710 "2021-10-11T09:47:11Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [October 11, 2021, 12:00pm UTC](https://community.mp3tag.de/t/author-book-mp3-autor-as-tag-artist/54710/7 "2021-10-11T12:00:38Z")

</div>

I think I found a solution in 3 steps:

**1.)** Split your existing path into a temporary tag field, like MY\_SPLITTED\_FOLDERPATH with an  
Action Type "Format value"  
Field:  
`MY_SPLITTED_FOLDERPATH`  
Format string:  
`$replace(%_FOLDERPATH%,'\','\\')`  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/c/cc353537cfe5f99a9d4c5f654bf1f4f0ab05d4c2.png)  
this would look like this if you press ALT + T:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/4/4dfd672bdbe3f4560e7e810847eee5ae132033f0.png)

**2.)** Get the needed item from the newly created MY\_SPLITTED\_FOLDERPATH tag into the ARTIST tag with a second action:  
Action Type "Format value"  
Field:  
`ARTIST`  
Format string:  
`$meta(MY_SPLITTED_FOLDERPATH,3)`  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/0/0e348f28266fc38628f22c2683227053612de470.png)  
The number after the comma indicates the item number. In our example  
`C:` would be item number 0  
`Temp` would be item number 1  
`mp3-Test` would be item number 2  
`author` would be item number 3  
`book` would be item number 4

**3.)** Clean up all the no more used MY\_SPLITTED\_FOLDERPATH tag fields with an action  
Action Type "Remove fields"  
Fields to remove:  
`MY_SPLITTED_FOLDERPATH`  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/a/a0e6ed9b22f53963de6f2ee927bb543e217fd80d.png)

[Thanks go to DetlevD](https://community.mp3tag.de/t/easy-way-to-get-directory-names-above-parent/9324/5) for his idea.

---

_[View the full topic](https://community.mp3tag.de/t/author-book-mp3-autor-as-tag-artist/54710)._
