Multiple Keyword Processing Only Leaves Last Keyword

Started by rcgordon, September 02, 2011, 02:33:58 PM

Previous topic - Next topic

rcgordon

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?

BogdanH

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


Phil Harvey

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