ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: rcgordon on September 02, 2011, 02:33:58 PM

Title: Multiple Keyword Processing Only Leaves Last Keyword
Post by: rcgordon on September 02, 2011, 02:33:58 PM
I just downloaded the Mac version yesterday (10.5.8).

I'm building an AppleScript to parse keyword content and add it to the placed images in a set of InDesign files.

As an example, the constructed command string is as follows:

exiftool -keywords='405-TomsCabin.indd' -keywords='TomsCabin' -keywords='405' -keywords='400' '/Volumes/REDACTED/TomsCabin/Links/WebBuddha.psd'

The problem is, that after the command is run, only the last keyword is set.

What am I doing wrong?
Title: Re: Multiple Keyword Processing Only Leaves Last Keyword
Post by: BogdanH on September 02, 2011, 03:03:54 PM
Hi,
To add keywords:

-exiftool -keywords='first keyw' myphoto.jpg
-all eventually existing keywords are deleted and keyword 'first keyw' is saved.

-exiftool -keywords+='second keyw' myphoto.jpg
-keyword 'second keyw' is added to existing list of keywords. That is, sign + must be put before = sign.

Bogdan
Title: Re: Multiple Keyword Processing Only Leaves Last Keyword
Post by: rcgordon on September 02, 2011, 04:16:12 PM
Thanks. That's the ticket.
Title: Re: Multiple Keyword Processing Only Leaves Last Keyword
Post by: Phil Harvey on September 02, 2011, 09:03:51 PM
Quote from: rcgordon on September 02, 2011, 02:33:58 PM
exiftool -keywords='405-TomsCabin.indd' -keywords='TomsCabin' -keywords='405' -keywords='400' '/Volumes/REDACTED/TomsCabin/Links/WebBuddha.psd'

The problem is, that after the command is run, only the last keyword is set.

What am I doing wrong?

This should work.  Your syntax is correct for adding multiple entries to a list:

> exiftool -keywords='405-TomsCabin.indd' -keywords='TomsCabin' -keywords='405' -keywords='400' a.psd
    1 image files updated

> exiftool -keywords a.psd
Keywords                        : 405-TomsCabin.indd, TomsCabin, 405, 400


- Phil