Repository for neat file name string patterns and tagger script snippets

The reason it splits the artists on a compilation is you’re using %artist% instead of %albumartist%. %albumartist% is the same for all tracks on the album, while %artist% can vary from track to track.

To split DJ compilations from VA’s (or to treat any group of albums differently), you can use what I call “control tags”.

  1. Create a script in the Scripting tab of Options called “Set DJ compilation”
  2. In that script put the line: $set(DJCompilation, 1)
  3. Make sure the checkbox next to the script is not checked.
  4. In your file naming script you can use $if(%DJCompilation%, … to divide the things you want to happen to DJ comps from the VA comps.
  5. Now pull up your DJ comps in Picard and select all.
  6. Right-click on them, select Run Script and click “Set DJ compilation”
  7. Now they’ll all have the control variable and it will be written to the files as a custom tag.
  8. You should also create a script with $delete(DJCompilation) in case you want to remove the tag from some of your files.
2 Likes