ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: José Oliver-Didier on March 17, 2016, 11:21:45 PM

Title: Is there a way to check for duplicates when adding a Structured Information?
Post by: José Oliver-Didier on March 17, 2016, 11:21:45 PM
I was experimenting with the LocationCreatedLocationID struct tags and entered the same command twice.

exiftool -LocationCreatedLocationID+="A"
exiftool -LocationCreatedLocationID+="A"

Upon examining the XMP I discovered that the entry "A" was added twice (duplicated). Is there a way to avoid this from happening? A flag which checks to see if the information already exists and does not add it again?

Title: Re: Is there a way to check for duplicates when adding a Structured Information?
Post by: Phil Harvey on March 18, 2016, 07:37:20 AM
Yes.  See the 3rd last example in FAQ 17 (https://exiftool.org/faq.html#Q17)

- Phil