Main Menu

Using Structures

Started by QPRJohn, October 26, 2015, 02:03:58 PM

Previous topic - Next topic

QPRJohn

First of all please accept my apologies if this has been dealt with before.

I use structures to read/write to various tags. I'm having several problems writing back tags, to keep it simple I'll discuss them separately.

The first problem is that if I put a space in the text it will only save the text up to the space?

The following code is an example of what I have used to write back to a file....

"-overwrite_original -RegistryID=[{RegItemId=YYYYYYYYYYYYYYYYYYYYYYYYY,RegOrgId=Registry Organisation Identifier}]"

The RegOrgID text will only save "Registry".

All other structured tags behave the same?

Any ideas?

Thanks in advance John


Phil Harvey

Hi John,

You need to put quotes around a command-line argument containing spaces:

exiftool -overwrite_original "-RegistryID=[{RegItemId=YYYYYYYYYYYYYYYYYYYYYYYYY,RegOrgId=Registry Organisation Identifier}]" ...

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

QPRJohn

Thanks Phil

Works a treat.

John  :)