Please help with simple script

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?

Thanks!

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

$if(%albumgrouping%,$set(genre,%albumgrouping%),)
3 Likes

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.
2 Likes

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