calberga
Ancient Board Spirit
     
Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002 |
 |
Posted: July 28 2006,00:30 |
 |
The red in the output template is there because there is no definition for <Title> in the input.
If the "aaaaaaa" substring in you example filename is the title, then try (with another suggested change)
<TRASH>(Disk <TrackNr-1[|]>)_<TrackNr-2[0|]>_<Title>.mp3
(the insertion of "(Disk " obviates the possibility of errors in counting, or files with different numbers of characters before the disc number).
I, on the other hand, you are hoping to grab the "Title" tag from the file, I don't think it can be done in one step. In the direct rename you can only use tokens defined in the input template to build the output template. In that case you will need two steps (using Magnus's macro facility).
First, simply rename the file with the output template:
<TrackNr-1[|]><TrackNr-2[0|]>.mp3
Then rename from tags with:
<TrackNr> - <Title>
Wrap the two into a macro, and hey presto!
However, two additional comments.
First, why are you appending the "0" to the front of the original track number? You show the number as two digits in you example filename. If, in fact, it can vary (e.g., not have a leading zero for numbers less than 10) you are not going to get file names which sort reasonably, as "101 - xx" will be followed by "1010 - xx". You would be better off stashing the disk number in some un-used v2 tag, such as <V2_TPOS>, or if you are using that something really odd, like <V2_WCOM>, "Commercal Information". Then, after making sure the V1 and V2 tags are syncoronized you will have leading zeros on all the track numbers less than 10.
********* Magnus -- help me out here incase I've flubbed the regularizing of the tracknumber lengths. **********
[Note that this somewhat (hence the cry for help above) on the "Zero pad track numbers" setting in the "General tagging" area of the "Settings" checked and set to the appropriate number.]
Then do a rename from files with:
<V2_TPOS><TrackNr> - <Title>
and as a cleanup, clear out the temporary tag you used.
Second comment. In the direct rename there is no reason to use tokens with tag names, other than as a mnumonic. It is much cleaner (IMHO) to use simply <Custom1>, <Custom2>, etc. These are, after all, just parts of file names, which may, incidently have the same value of tags, but need not.
Just my crazyness, probably.
|