# Export playlist

**URL:** https://community.mp3tag.de/t/export-playlist/13912
**Category:** Export
**Created:** [September 23, 2012, 3:46pm UTC](https://community.mp3tag.de/t/export-playlist/13912 "2012-09-23T15:46:52Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Heimdall](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/c2a13f/32.png) [@Heimdall](https://community.mp3tag.de/u/Heimdall)
#### Post date: [September 23, 2012, 3:46pm UTC](https://community.mp3tag.de/t/export-playlist/13912/1 "2012-09-23T15:46:52Z")

</div>

I have set up an action group to do these actions:  
 ![:mt_cut:](https://community.mp3tag.de/uploads/default/original/1X/cf6646e9231e7d7a8d540815af10bd46a7b3c6fa.png ":mt\_cut:")  
Format value "\_FILENAME": %track%-%artist%-%title%  
Case conversion "\_FILENAME": lower case  
Replace "_FILENAME": " " -\> "_"  
Replace "FILENAME": "!" -\> ""  
Format value "\_DIRECTORY": %artist%-%album%-%year%  
Replace "_DIRECTORY": " " -\> "_"  
 ![:mt_cut:](https://community.mp3tag.de/uploads/default/original/1X/cf6646e9231e7d7a8d540815af10bd46a7b3c6fa.png ":mt\_cut:")  
I had also set up en export in this action group to compile a playlist of all files but when I had that in this action group it wrote it to the directory before the name change thus leaving me with two directories, one correctly named with the mp3:s and one incorrectly named with the playlist.  
I'd also like the playlist named in all lower case letters if that's possible.

Help appreciated.

The export script is like this in case that makes a difference (I have no idea what I'm doing, I just trail and error it until I get the results I want).  
 ![:mt_cut:](https://community.mp3tag.de/uploads/default/original/1X/cf6646e9231e7d7a8d540815af10bd46a7b3c6fa.png ":mt\_cut:")  
$filename(00-%\_directory%.m3u,utf-8)  
$loop(%\_path%)%\_filename\_rel%  
$loopend()  
 ![:mt_cut:](https://community.mp3tag.de/uploads/default/original/1X/cf6646e9231e7d7a8d540815af10bd46a7b3c6fa.png ":mt\_cut:")

---

_[View the full topic](https://community.mp3tag.de/t/export-playlist/13912)._
