Help finishing/clean up simple script

That is pretty neat and indeed functions exactly as needed so far (tested about 5 albums), thanks!

Now I only need to somehow include the detection of lossy music and sort the name accordingly. I downloaded this script Categorizing lossless music, but I am still battling with how to make it work with my naming script.

For lossy music, I’d just want to have a simple $if(%albumartist%,%album% ($left(%originalyear%,4)) “Aritst - Album (Year)”

Any hints or feedback regarding that is very appreciated.