QUOTE (cimnine @ Apr 8 2008, 00:17)

%track% will return you exactly what you enterd as "Track"-tag in the file. So if the value was "12/20" it will return "12/20". And if the value was "12" it will return 12.
br
Chris
I thought that might be how it is. Unfortunately it seems that all of my files are in xx/XX format. They've been ripped using several different ripping tools and all of those tools have done the track tag in the same xx/XX format.
So I can't rely on %track% giving me just the track number and not something in the xx/XX format.
I ended up using a regular expression in the export script to clean up the %track% output.
$regexp(%track%,/.*,)
That strips away the "/" and everything to the right of it and leaves just the track number.
I have MP3Tag exporting an XML format file. Now I'll have to see what I can do with it.