I am trying to add multiple tags (sub-genres/moods/styles) into the Comments field of certain Artists. Most of the Collection are single tracks in large directory folders, not separated into Albums, with the Artists scattered all over.
So i thought something like this might work, and it almost does….
Where did you get that syntax as it does not resemble really that what is used in MP3tag.
Try $if($eql(%artist%,Massive Attack),%comment%',GROOVY,FUNKY,BRISTOL',%comment%)
Thanks for your reply. I found some code on a few pages, and then tried variations of each till i got a result, ( trial and error ), i know, not the best or most efficient method !
The preview panel kept telling me that anything i added after the $if query( ie a bracket )) would be invalid syntax, even though i saw many examples in the discussions.
i also kept returning 2x Massive Attack, which was helped, i think, by this thread…
and a lot of searching and scratching my head later, this was the best i could get. It was late here in Oz so i turned to the experts for help thankyou !
Your edit works, however, it still returns a leading comma in the Comments field. How would i fix that ?
Your edit is artist-selective, thank you, that’s what i was trying to achieve.
Now, i’ll find another problematic script to entertain myself for the next few hours
It is not quite clear to me whether there is already data in the field COMMENT or not.
Actually, I doubt that such an action is the most efficient way. How often in the life of a file will this action need to be applied?
I would
sort by the column for artist,
select all files of an artist and then
enter the string(s) in the corresponding fields (in the tag panel) and then
save the modification with Ctrl-S
And even if later you should add further tracks by a particular artist, it would be easier (I think) so filter and sort by the artist and copy such data from the old files to the new ones instead of creating a long list of actions.
The preview interprets the current string - and "$if(" is invalid as it misses the closing parenthesis and probably the internal structure. You would have to enter the complete string and see what it does.
yes, i agree, sorting would be easier. i really only discovered the sorting field last night ( was concentrating on the learning the top file options )
and yes, that’s what i thought the syntax error was coming from, later, on reflection