[quote=“oskargunn, post:1, topic:161872”]
This doesn't actually *assign* the new value to the `%date%` variable. You will want to wrap it in a `$set()` function, like so:
I’ve personally been using something like this:
Note that here I’m setting a new variable,
%_year%, so you’d need to use this in the file naming string - the benefit of this is that
%date% is left untouched and can be used for other things as well. This also sets the “year” to “XXXX” in case there’s no date (so you’re sure there’s always something) - and it doesn’t include the parentheses in the
%_year%, so you’d have to add that in yourself where you want it.
The various functions are documented at https://picard.musicbrainz.org/docs/scripting/