Please help with simple script

Tags: #<Tag:0x00007fe3158b3be8>

I am a total newbie. I tried looking at the FAQ but couldn’t figure out how to do the following:

If a file has a value in the tag name “albumgrouping” I want “genre” to be completely replaced with it.

What should the script look like?


Just off the top of my head (not tested), you might try something like:


Just two minor additions:

  1. The tag name for this in Picard is %grouping%, not %albumgrouping%
  2. If you want this script to work for existing tags in your files this will not work fully automatically. But selecting the files, right clicking them and choose the script in the “Run script” submenu should work.

Good points, and not exactly “minor”. :wink: Thanks for the additional clarification.