File Naming - Destination Directory issue

I currently have my destination directory configured for a UNC path on my FreeNAS box; the fiile naming is in this format:

%albumartist%/%album% (%originalyear%)/%albumartist% - %album% $if($gt(%totaldiscs%,1),$if2(%media%,CD)%discnumber% ,)- $num(%tracknumber%,2) - %title%

All of that seems to work OK, but I’ve got way too many artists and want to narrow the file structure down by first letter of the artist – so that when it’s moving the files to the nas, instead of putting them all into one directory, for example:
\freenas\music
it would go to
\freenas\music\firstletterofartist
Any idea how I can do this?

Use e.g.

$firstalphachar($if2(%albumartistsort%,%artistsort%))/

at the start of your script. It depends on your personal preferences if you use the sort name or the normal name, but I prefer the sort name (“The White Stripes” should be under “W”, not “T”).

1 Like

THANK YOU! That worked great!