Correct Syntax for writing -IPTC:Country-PrimeryLocationName/-Code?

Started by klemmleuchte, May 28, 2010, 07:18:04 AM

Previous topic - Next topic

klemmleuchte

Hi,
I'm testing a batch to write fixed IPTC-contents.
-Artist, -Copyright, IPTC:Copyright, -IPTC-Writer-Editor are still working.

-Country-PrimeryLocationName=Deutschland
-Country-PrimeryLocationCode=DEU
doesn't match and runs into
QuoteWarning: Tag 'Country-PrimeryLocationName' does not exist or has a bad language
code
Nothing to do.
-- press any key --
and similar on ..Code

Changed to english contents 'Germany' and 'GER' also do not work.
Code shortened to 'DE' gets no warning, but in ISO3166 is also listed DEU or GER, which are both not working.
-IPTC on written files do not list any Country...-data.

What checks ExifTool are doing for this warning?
Can you please help with the correct command?

Phil Harvey

The problem is the name of the tag, not the value.

You spelled "Primery" instead of "Primary" in the tag names.

- 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 ($).

klemmleuchte

 :o
Painful...
Seems you've better eyes than I. I controlled several times the spelling, but never seen this. Thank you for helping again.