# Simple export text help

**URL:** https://community.mp3tag.de/t/simple-export-text-help/4870
**Category:** Export
**Created:** [May 13, 2007, 12:09am UTC](https://community.mp3tag.de/t/simple-export-text-help/4870 "2007-05-13T00:09:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![noxlord](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@noxlord](https://community.mp3tag.de/u/noxlord)
#### Post date: [May 13, 2007, 12:09am UTC](https://community.mp3tag.de/t/simple-export-text-help/4870/1 "2007-05-13T00:09:24Z")

</div>

Hello, at first, I wanted to create my own "code" by folowing some manual... But Since I didn't find any tutorial on how to create those, I manage to create something.

```
$filename(txt)
$loop(%_path%)%track% - %artist% - %album% - %title%
$loopend()

```

The output, for _the Queen of the Damned OST_ would be:

> [@](#):
>
> 3 - Chester Bennington of Linkin Park - Queen of the Damned - System  
> 2 - David Draiman of Disturbed - Queen of the Damned - Forsaken  
> 4 - DefTones - Queen of the Damned - Change (In The House of Flies)  
> 9 - Disturbed - Queen of the Damned - Down With The Sickness  
> 12 - Dry Cell - Queen of the Damned - Body Crumbles  
> 11 - Earshot - Queen of the Damned - Headstrong  
> 7 - Godhead - Queen of the Damned - Penetrate  
> 8 - Jay Gordan - Queen of the Damned - Slept So Long  
> 14 - KidneyThieves - Queen of the Damned - Before I'm Dead  
> 5 - Marilyn Manson - Queen of the Damned - Redeemer  
> 6 - Papa Roach - Queen of the Damned - Dead Cell  
> 10 - Static X - Queen of the Damned - Cold  
> 13 - Tricky - Queen of the Damned - Excess  
> 1 - Wayne Static of Static X - Queen of the Damned - Not Meant For Me

I am halfway done since I managed to get all the info I wanted. however I need some help for the formating. What I need is:

- Entry are sorted by track number
- An extra space after the track number for number 1 to 9 (so entry are more aligned)
- How do I add static text ??

Thanks for the help

NoX

---

<div class="post-metadata">

### Author: ![milka](https://community.mp3tag.de/user_avatar/community.mp3tag.de/milka/32/55_2.png) [@milka](https://community.mp3tag.de/u/milka)
#### Post date: [May 13, 2007, 11:13am UTC](https://community.mp3tag.de/t/simple-export-text-help/4870/2 "2007-05-13T11:13:32Z")

</div>

```
$filename(txt)
This is static text.

$loop(%track%)$if($eql($len(%track%),1),%track% ,%track%) - %artist% - %album% - %title%
$loopend()
```

---

<div class="post-metadata">

### Author: ![noxlord](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@noxlord](https://community.mp3tag.de/u/noxlord)
#### Post date: [May 13, 2007, 12:07pm UTC](https://community.mp3tag.de/t/simple-export-text-help/4870/3 "2007-05-13T12:07:54Z")

</div>

Merci Milka, you got some of my problems resolved, however the "sort by track number" function dosen't work like it should:

```
1 - Wayne Static of Static X - Queen of the Damned - Not Meant For Me
10 - Static X - Queen of the Damned - Cold
11 - Earshot - Queen of the Damned - Headstrong
12 - Dry Cell - Queen of the Damned - Body Crumbles
13 - Tricky - Queen of the Damned - Excess
14 - KidneyThieves - Queen of the Damned - Before I'm Dead
2 - David Draiman of Disturbed - Queen of the Damned - Forsaken
3 - Chester Bennington of Linkin Park - Queen of the Damned - System
4 - DefTones - Queen of the Damned - Change (In The House of Flies)
5 - Marilyn Manson - Queen of the Damned - Redeemer
6 - Papa Roach - Queen of the Damned - Dead Cell
7 - Godhead - Queen of the Damned - Penetrate
8 - Jay Gordan - Queen of the Damned - Slept So Long
9 - Disturbed - Queen of the Damned - Down With The Sickness

```

Would it be possible to make the filename has the same name as the folder in wich are the songs ?

---

<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: [May 13, 2007, 5:37pm UTC](https://community.mp3tag.de/t/simple-export-text-help/4870/4 "2007-05-13T17:37:39Z")

</div>

```
$filename(%_directory%.txt)
This is static text.

$loop($num(%track%,3))$if($eql($len(%track%),1),%track% ,%track%) - %artist% - %album% - %title%
$loopend()
```

---

<div class="post-metadata">

### Author: ![noxlord](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@noxlord](https://community.mp3tag.de/u/noxlord)
#### Post date: [May 13, 2007, 11:59pm UTC](https://community.mp3tag.de/t/simple-export-text-help/4870/5 "2007-05-13T23:59:07Z")

</div>

Dano, your latest code works, tk.

HOwever, I want to add static test with lots of odd ascii caracters in it.  
Every time I try to add it, I end with a error message like: [SYNTAX ERROR IN FORMATTING STRING]

Is there a way to mark lines as comments so they wont be taken as code ? It don't even work if I remove all the "$" in my ascii text.

regards

NoX

---

<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: [May 14, 2007, 5:41am UTC](https://community.mp3tag.de/t/simple-export-text-help/4870/6 "2007-05-14T05:41:19Z")

</div>

The characters []$% have special functions, you must enclose them with '  
'$'

Or if you put the whole text in ' it could also work  
And if you want to use ' you must write it twice ''

Or $char(36) -\> $
