Getting Rid Of "}" In Keywords

Started by Darius1968, November 20, 2021, 02:04:47 AM

Previous topic - Next topic

Darius1968

So, I have some files, in my DB, for which, their Keywords, unfortunately, contain the character:  }, and I simply, want to get rid of them.  The following argument, is what I've attempted, in a metadata template, to act on the keywords. 

{File.MD.XMP::Lightroom\hierarchicalSubject\HierarchicalSubject\0|replace:~}==;}

I know, for a fact, that I have already, multiple times, had success with this argument, when }, is not among the character strings, in the pattern, meant for deletion.  So, is there anything, I can do? 

Mario

Variables cannot contain { or } and the ~ escape for replace: does not work on { or } of course.

I recommend you just use the The Metadata Mechanic and replace { and } with 'nothing'.
The Metadata Mechanic is a very powerful feature designed specifically to deal with all kinds of metadata problems. Have you not used it yet?

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook