ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Alan Clifford on April 22, 2012, 03:35:45 PM

Title: conditional with mwg
Post by: Alan Clifford on April 22, 2012, 03:35:45 PM
As part of my keywordsandstuff.args file in:
exiftool -@ keywordsandstuff.args -ext jpg .
I have:
-mwg:location-=
-mwg:location=San Francisco, California, USA


What happens if just one of the location values has an entry but the others don't?  I suppose I should just test it.

Alan
Title: Re: conditional with mwg
Post by: Alan Clifford on April 22, 2012, 03:45:04 PM
I answered my own question by deleting "location" and it filled that in but left the other.  So I ended up with different values in "location" and "sub-location"

That seems to be logical logic! 

Alan
Title: Re: conditional with mwg
Post by: Phil Harvey on April 22, 2012, 08:50:47 PM
Hi Alan,

Yes, this is what I expect if both XMP and IPTC exist.

If no IPTC exists already, then IPTC:Sub-location will not be written, as per the MWG logic.

- Phil