Sebastian - Thanks so much for your help. Unfortunately, I can't get it to work due to my (obviously) being one of the non-binaries. I really do appreciate your help and have explained here what I did, what happened, and finished with begging you for help in determining where I'm going wrong in trying to decipher exactly what the $mid... formatstring is supposed to do. I realize this is well beyond the call of duty, but I thought I'd throw it out there. I completely understand if you can't, or don't want to answer. I can hire a tutor - it's not your job to lead the blind.
After I spent HOURS getting all these colors in this post (yours was SOOO easy to read!!) I think I may have hit upon a reason it's messing up, but I had to give up because at a glance, it doesn't look like my discovery would explain why I'm getting the result TRACK = f. There's no "f" in "Lie Down With Lions" so I'm lost.
I can work on it, and this is probably terrible, horrible no-good protocol, but I just spent so much time creating this post, I'm going to go ahead and run it away, hoping that you, or someone, can enlighten me on where I'm going wrong.
EXAMPLE
FILENAME: Ken Follett-Lie Down With Lions 01 of 20.mp3
TRACK: 1 (For some reason, the TRACK tag for each of the 20 files is shown as "1")
FIRST ACTION
Action type: Guess values
Source format: %_filename%
Guessing pattern: %artist% - %title%
RESULT
Artist: Ken Follett
Title: Lie Down With Lions 01 of 20. (<-period is included)
==========
QUESTION
Wouldn't the following achieve the same result without the period at the end?
Action type: Format value
Field: FILENAME
String: %artist%-%title%
================
SECOND ACTION
Action type: Format value
Field: DISCNUMBER
Formatstring: $mid(%_filename%,$sub($len(%_filename%),4),2)
RESULT
Artist: Ken Follett
Title: Lie Down With Lions 01 of 20. (<-period is still included)
Discnumber: f (Should be "01")
==================
So it's the $mid... formatstring that's messing up, right? I'm trying to understand exactly WHAT it does, so could you please look at my logic (below) and tell me just how clueless I am?
==============
WHAT I THINK HAPPENS IN $mid(%_filename%,$sub($len(%_filename%),4),2)
$len(%_filename%) - Returns the LENGTH of the FILENAME [Ooh ... I'm just proofing my post, and I'll bet the problem is that %_filename% should be %_title% !!]
QUESTION: Does $len use characters (space, hyphen) to count LENGTH? If so, $len(%_title%) would be returned as 7.
$sub((7),4) - SUBTRACTS 4 from 7 - resulting in 3
$mid(Lie Down With Lions 01 of 20,3,2)
Mp3Tag describes the $mid formatstring as follows:
$mid(x,n,i) - First i characters of text x, starting at character n.
I interpret this to be
i = 2
x = Lie Down With Lions 01 of 20
n = 3
which I interpret as
The first 2 characters of Lie Down With Lions 01 of 20, starting at character 3.
Which would be Li in "Lions", but my return is a lower-case f and nothing else.