Action - Replace ANY existing text with new choice

Hi,

I want to use the actions to auto replace both genre and comment with my given choices. I have figured out the removing of the fields that I don't want, but I am puzzled as to what I have to put in the "Original: " box, as I don't care what is there, I expect there to be 100 different genres and comments and I want them removed and replaced with my given genre and comment.

Any and all help appreciated!

Chris :slight_smile:


Chris, hm, you may create 100 or more replace actions in one action group, one action for each special case.
Hm , or ... is there any logical or textual relation between the 'incoming' genre text and your replacement text? (oldname:newname, like n:n or n:m)
Will say is there any 'coding table' or any 'translation rule'?

Or do you want simply to remove all text from the GENRE tag-field and set your own text value?
For this case use an action "Format value".

DD.20140211.1854.CET

Use:

"Replace with regular expression

put .* in "Regular expression:"

and whatever you want in "Replace matches with:"

Thanks for your reply. I just simply want to strip out the genre and replace with 'Psychedelic Rock' and strip out any comments and add Psychedelicized Radio

Wouldn't it be easier to select all the files, enter the desired string in the tag panel and then save?

just .* in the "Original: " box, as per attached pic, doesn't work?


That's what I normally do, I just though I could save myself always typing and adding the same info, to same boxes, by setting up an Action?

You would have to execute that action - and whether navigating to the action is less cumbersome than typing - personal taste.

But: if you want to rely on an action, then I would recommend an action of the type "Format value" instead of "Replace" - this leaves out the interpretation of the source string and simply puts that what you have written into the "Format String" into the field.

That's because you are in the "Replace" action NOT the "Replace with regular expression" action as I suggested.

Which is where? Thanks

OK found it, but it doesn't work either?


Ok, ohrenkino, you get the gold star! :slight_smile: Thanks, that works, as per attached pic, for anyone else that has the same issue. This is better than everyday having to find the genre, type in the same comment, save, then go to extended tags, which can cause an issue on my server, strip them out etc. Now, I have it set-up, so on click on Actions, another on my preset and boom, all the junk tags are stripped out and the info I want is added, so two clicks is better than a bunch of typing and hunting.
Thanks for everyone's input.