# Need help exporting in this format if possible

**URL:** https://community.mp3tag.de/t/need-help-exporting-in-this-format-if-possible/11645
**Category:** Support
**Created:** [February 26, 2011, 11:47pm UTC](https://community.mp3tag.de/t/need-help-exporting-in-this-format-if-possible/11645 "2011-02-26T23:47:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![godzillajoe](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/4491bb/32.png) [@godzillajoe](https://community.mp3tag.de/u/godzillajoe)
#### Post date: [February 26, 2011, 11:47pm UTC](https://community.mp3tag.de/t/need-help-exporting-in-this-format-if-possible/11645/1 "2011-02-26T23:47:01Z")

</div>

Can't quite get the hang of looping. What I want to do is export everything like this:

ARTIST  
ALBUM (YEAR)

```
track 01
track 02

```

ARTIST 2  
ALBUM (YEAR)

```
track 01
track 02

```

for example

TORI AMOS  
UNDER THE PINK (1991)

```
01 - God
02 - Blah Blah
03 - Blah Blah Blah

```

ANOTHER ALBUM (2010)

```
01 - Foo
02 - Foo Part 2

```

BJORK  
DEBUT (1992)

```
01 - Track 1
02 - Track 2

```

So every artist is listed once, then every album by that artist indented with all the tracks from that album indented under that etc. skip a line then do the next artist etc. All spit out in rtf format.

Thanks for any help.

---

<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: [February 27, 2011, 11:31am UTC](https://community.mp3tag.de/t/need-help-exporting-in-this-format-if-possible/11645/2 "2011-02-27T11:31:10Z")

</div>

> [@godzillajoe](#):
>
> ... So every artist is listed once, then every album by that artist indented with all the tracks from that album indented under that etc. skip a line then do the next artist etc. All spit out in rtf format. ...

Your textual description does not fit to the visual outline.  
But I put something together as a starting point.

**$filename(O:\TEST\Export RTF - Artist.Album.Track.rtf,ANSI)'{\rtf1\ansi\ansicpg1252{\fonttbl{\fcharset0 Arial Unicode MS;}}\fs12'$loop(%ARTIST%,1)'\ql '$upper(%ARTIST%)'\line '$loop(%YEAR%%ALBUM%,1)'\tab '$upper(%ALBUM%) '('$left(%YEAR%,4)')''\line'$loop(%DISCNUMBER%)$loop(%TRACK%)'\tab\tab '$num(%TRACK%,2)' - '%TITLE%'\line'$loopend()$loopend()$loopend()'\par'$loopend()'}'**

Script mte file:  
[Export\_RTF\_\_\_Artist.Album.Track.rtf.mte](https://community.mp3tag.de/uploads/default/original/2X/d/d05a2cd1177c2f37938f643d3ceff334f3149278.mte) (378 Bytes)  
Example output rtf file:  
[Export\_\_\_Artist.Album.Track.rtf](https://community.mp3tag.de/uploads/default/original/2X/f/fd911087addbc8e698e2d984a62335254d450c09.rtf) (2.51 KB)

DD.20110217.1335.CET

[Export\_\_\_Artist.Album.Track.rtf](https://community.mp3tag.de/uploads/default/original/2X/f/fd911087addbc8e698e2d984a62335254d450c09.rtf) (2.51 KB)

[Export\_RTF\_\_\_Artist.Album.Track.rtf.mte](https://community.mp3tag.de/uploads/default/original/2X/d/d05a2cd1177c2f37938f643d3ceff334f3149278.mte) (378 Bytes)

---

<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: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/need-help-exporting-in-this-format-if-possible/11645/3 "2026-02-09T12:22:56Z")

</div>


