ExifTool Forum

ExifTool => Developers => Topic started by: QPRJohn on October 26, 2015, 02:03:58 PM

Title: Using Structures
Post by: QPRJohn on October 26, 2015, 02:03:58 PM
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

Title: Re: Using Structures
Post by: Phil Harvey on October 26, 2015, 02:28:23 PM
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
Title: Re: Using Structures
Post by: QPRJohn on October 27, 2015, 03:34:36 AM
Thanks Phil

Works a treat.

John  :)