conditional with mwg

Started by Alan Clifford, April 22, 2012, 03:35:45 PM

Previous topic - Next topic

Alan Clifford

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

Alan Clifford

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).