No need for a new thread. It works perfectly! Thanks ever so much for your help, oc! Much appreciated!
My apologies for derailing the thread with my troubleshooting queries. In the interest of getting back on the right track, I'll post my final code in case anyone is curious and would like to use it and/or customise it for their own purposes:
Single Artist File Naming Format
$replace($if($eq($left($if2(%albumartist%,%artist%),4),The ),[-=$left($right($if2(%albumartist%,%artist%),$sub($len($if2(%albumartist%,%artist%)),4)),1)=-],[-=$left($if2(%albumartist%,%artist%),1)=-])/$rreplace($replace($if2(%albumartist%,%artist%),...,…),\\.\$,$noop(.))/$if(%date%,[$left(%date%,4)] )$rreplace($replace(%album%,...,…),\\.\$,$noop(.))/$num(%tracknumber%,2) - $replace(%title%,...,…),_,$noop(.))
So... What does it do?
1. All files will be placed into this folder structure:
[-=First Letter of ArtistName=-]\ArtistName\[Year] AlbumName\TrackNumber - TrackName
2. The [Year] portion will be omitted from the AlbumName if there is no release date
3. If the ArtistName starts with "The ", it will take this into account when determining the [-=First Letter of ArtistName=-]
4. If the ArtistName, AlbumName or TrackName contain a three-dot "..." sequence, it will be replaced with a true ellipsis "…"
5. If the ArtistName or AlbumName ends in a dot "." then that dot will be removed
6. Finally, any and all underscores "_" will be removed from the entire path
Example #1: ArtistName Ends in Dot "."
Sixx:A.M. > The Heroin Diaries > Life is Beautiful
[-=S=-]\SixxA.M\[2007] The Heroin Diaries Soundtrack\03 - Life Is Beautiful.mp3
Example #2: AlbumName, TrackName Contain Three-Dot "..." Sequence
Metallica > ...And Justice For All > ...And Justice For All
[-=M=-]\Metallica\[1988] …and Justice for All\02 - …and Justice for All.mp3
Example #3: ArtistName Begins With "The "
The Fabulous Thunderbirds > Hot Stuff > Powerful Stuff
[-=F=-]\The Fabulous Thunderbirds\[1992] Hot Stuff The Greatest Hits\08 - Powerful Stuff.mp3
Multiple Artist File Naming Format
$replace($if($eq(%albumartist%,Various Artists),[~Various Artists~]/,$if($eq($left($if2(%albumartist%,%artist%),4),The ),[-=$left($right($if2(%albumartist%,%artist%),$sub($len($if2(%albumartist%,%artist%)),4)),1)=-],[-=$left($if2(%albumartist%,%artist%),1)=-])/$rreplace($replace($if2(%albumartist%,%artist%),...,…),\\.\$,$noop(.))/$if($ne(%albumartist%,Various Artists),$if(%date%,[$left(%date%,4)] )))$rreplace($replace(%album%,...,…),\\.\$,$noop(.))/$num(%tracknumber%,2) - $replace(%artist% - %title%,...,…),_,$noop(.))
So... What does it do?
1. Multi-artist albums attributed to "Various Artists" will have files placed into this folder structure:
[~Various Artists~]\AlbumName\TrackNumber - ArtistName - TrackName
2. Multi-artist albums attributed to a specific artist will have files placed into this folder structure:
[-=First Letter of AlbumArtistName=-]\AlbumArtistName\[Year] AlbumName\TrackNumber - ArtistName - TrackName
3. See Rules 2-6 for Single Artist Format above.
Example #1: Multi-Artist Album Attributed to Various Artists
Various Artists > Transformers Soundtrack > Mute Math > Transformers Theme
[~Various Artists~]\Transformers The Album\12 - Mute Math - Transformers Theme.mp3
Example #2: Multi-Artist Album Attributed to Specific Artist, ArtistName Begins With "The "
The Crystal Method > Community Service > Evil Nine > Cake Hole
[-=C=-]\The Crystal Method\[2002] Community Service\02 - Evil Nine - Cake Hole.mp3
Example #3: Multi-Artist Album Attributed to Specific Artist, AlbumName Ends in Dot "."
Yoko Kanno > Ghost in the Shell: Stand Alone Complex Original Soundtrack > Origa > Inner Universe
[-=Y=-]\Yoko Kanno\[2003] Ghost in the Shell Stand Alone Complex O.S.T\11 - ORIGA - Inner Universe.mp3
I hope people can use this or are at least inspired by this to contribute their own customised code. Again, thanks for your help, outsidecontext.