Basic script for file naming needed

Looking for a basic naming script for the convention below. It seems easy enough, but haven’t been able to find a good source to learn how to do this. I am not looking to move any files or anything advanced just yet. If someone could point me in the right direction, it would be mighty appreciated.

Rename current folder
artist - album

Rename music files
01 title
02 title

For example, say I have this folder:

Beastie Boys / Right Right Now Now
/ Ch-Check it Out
/ …

And I want to get this:

Beastie Boys - To the 5 boroughs / 01 Ch-Check it Out
/ 02 Right Right Now Now
/ …

What would the script be?

Off the top of my head (untested code), give this a try:

%albumartist% - %album%/$num(%tracknumber%,2) %title%

You can find the scripting information at https://picard.musicbrainz.org/docs/scripting/ and the tag information provided by Picard at https://picard.musicbrainz.org/docs/tags/ for more information.

1 Like

Interesting. The code is simple, yet resembles Excel in a way. I am guessing that the forward slash separates the commands for folder naming? I get the rest of it. Guess I was overwhelmed by the default script.

I tested this and it works. Had to enable move files and set the destination directory to “…” (without quotes) to save in a directory one level higher than the music is in.

Thank you for your help, keep up the good work!