Help with naming scripts

Hey man,

I was wondering if you could help me with my file naming script
The following script gives me this structure:

E:\Musicbee\Tagged\B\Beatles, The[2014] Help!\07. Ticket to Ride.mp3

$replace($rreplace(
$if($eq(%albumartist%,Various Artists),
[Various Artists],
$left($if2(%albumartistsort%,%artistsort%),1)/$left($rreplace($if2(%albumartistsort%,%artistsort%),; [^)]+,), 60))
/
$if(%date%,[$left(%date%,4)] )$left($replace(%album%,/,), 70)
$if($gt(%totaldiscs%,1),$if(%discnumber%, (Disc %discnumber%),),)
/
$num(%tracknumber%,2). $left(%title%,120),[:?"_]+,), , )

But I want it to look like

E:\Musicbee\Tagged(Letter of alphabet)\Album Artist\Original Year\Album name\Disc number\ Track number - Track Title - [All artists] (feat. featured artist)

The Beatles should come under T, not B

How do I make it look like the final one. My inexperience clearly shows.
I hope one of the regulars check this out @rdswift @jesus2099

I would also like to know how to test these scripts

Thanks in advance!

Hi @ShadowHunter20709, I don’t really use and know Picard script language, but it looks like foobar2000.

So I will start with just one question, first. :wink:

I think for this problem, you just have to replace %albumartistsort% and %artistsort% by %albumartist% and %artist% in the two $left() functions.

Doing so, David Bowie will also be in D folder, not B folder.

1 Like

Hey man,

I was wondering if you could help me with my file naming script
The following script gives me this structure:

E:\Musicbee\Tagged\B\Beatles, The[2014] Help!\07. Ticket to Ride.mp3

$replace($rreplace(
$if($eq(%albumartist%,Various Artists),
[Various Artists],
$left($if2(%albumartistsort%,%artistsort%),1)/$left($rreplace($if2(%albumartistsort%,%artistsort%),; [^)]+,), 60))
/
$if(%date%,[$left(%date%,4)] )$left($replace(%album%,/,), 70)
$if($gt(%totaldiscs%,1),$if(%discnumber%, (Disc %discnumber%),),)
/
$num(%tracknumber%,2). $left(%title%,120),[:?"_]+,), , )

But I want it to look like

E:\Musicbee\Tagged(Letter of alphabet)\Album Artist\Original Year\Album name\Disc number\ Track number - Track Title - [All artists] (feat. featured artist)

The Beatles should come under T, not B

How do I make it look like the final one. My inexperience clearly shows.

Thanks in advance!

actually, since David Bowie’s sortname would be “Bowie, David”, they’d also be under B

what you’re looking for looks pretty similar to my filenaming script, which I’ve posted here. I believe you can simply add slashes where you want to add a directory.

Question:

Answer:

:wink:

ahh, for some reason I that read backwards… :melting_face:

1 Like