add multiple keywords only if not already existing

Started by sevy, May 12, 2019, 08:14:34 AM

Previous topic - Next topic

sevy

Hello,

Exiftool : 11.41
OS : Win 10 64 - Home

I learned :
A :  how to add a keyword if not already existing :
exiftool -Keywords+="KW" -if "not $iptc:Keywords=~/KW/"

B : how to add multiple keywords in one operation :
exiftool -sep ", " -iptc:Keywords+="KW1, KW2, KW3"

but I have a question : is it possible to add multiple keywords only if not already existing ?
with others words : is it possible to combine A and B ?

thanks in advance

sevy

Phil Harvey

Hi Sevy,

Reading FAQ 17 should answer all your questions.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

sevy

Hi Phil,

Shame on me, the answer was available...

I used
exiftool -sep ", " -iptc:Keywords-="kw1, kw2, kw3" -iptc:Keywords+="kw1, kw2, kw3"
and it works

Thanks a lot,

Sevy