Adding text to beginning of existing comment

I'd like to create an action that would add specific text to the beginning of the comment field and leave whatever is already there.

For example. If the field already said, "Vinyl". I'd like it changed to "NMR, Vinyl".

Bonus if it could skip the comma when the field is empty, but I'm doubtful that's possible.

Can any of this be done?

See the FAQs:

And to limit the files to those that really need treatment, use a filter:
%comment% HAS Vinyl

Thank you. This works.

I'll have to solve the comma issue by doing this in two steps. This method for files that already have comments, then another to tag the ones that are blank.

Use this format string:
[NMR, %comment%]

The square brackets are responsable for only writing the format string if the placeholder has content.

1 Like

Nice idea, @poster.

If you use
NMR[, %comment%]
then you keep the existing contents of comment with an added comma but insert NMR every time in just one go

Nice. Thank you.

Now I can tag them all at once.