Now I want to assign the root folder name to the Genre tag. So "acoustic guitar" and "pop" in this example. I already have the full path assigned to the Genre tag. I probably have to use expressions to strip "s:" from the Genre string and all the characters past the second "". But how do I do that?
There are several methods to reach the goal ...
by using the Mp3tag scripting language ...
here is one proposal from the bag of tricks ...
Apply a group of two actions ...
Action 1: Format valueField: GENREFormatstring:$replace(%_path%,'\','\\\\')Action 2: Format valueField: GENREFormatstring:$meta(GENRE,1)
... or ...
apply one action ...
Action 1: Format valueField: GENREFormatstring:$regexp(%_path%,'^.+?\\\\(.+?)\\\\.*$','$1')
... or ...
apply one action ...
Action 1: Format valueField: GENREFormatstring:$left($cutLeft(%_path%,$strchr(%_path%,'\')),$sub($strchr($cutLeft(%_path%,$strchr(%_path%,'\')),'\'),1))
... or ...
apply a group of four actions ...
Action 1: Format valueField: GENREFormatstring: %_path%Action 2: Format valueField: GENREFormatstring:$cutLeft(%GENRE%,$strchr(%GENRE%,'\'))Action 3: Format valueField: GENREFormatstring:$left(%GENRE%,$strchr(%GENRE%,'\'))Action 4: Format valueField: GENREFormatstring:$trimRight(%GENRE%,'\')
Perhaps you assign the genre part of the filename again and leave out the stripping.
Use the function Convert>Filename-Tag
Format string: %genre%\%dummy%\%dummy%
Great! The very first offered option already works perfect for me. Thanks for taking the time! I also like the alternatives, gives some insight in how this all works.