Need help exporting in this format if possible


#1

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.


#2

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 (378 Bytes)
Example output rtf file:
Export___Artist.Album.Track.rtf (2.51 KB)

DD.20110217.1335.CET

Export___Artist.Album.Track.rtf (2.51 KB)

Export_RTF___Artist.Album.Track.rtf.mte (378 Bytes)