Copy List of Keywords with conditional keywords...

Started by Archive, May 12, 2010, 08:54:39 AM

Previous topic - Next topic

Archive

[Originally posted by pixelpicker on 2009-08-28 18:06:09-07]

Hello Phil!

Hope you had a good jorney, even when its some time ago now. About the last problem I posted I will get back to you later.

Now I would like to add a list of keywords under the condition, that a special keyword already exists in iptc or xmp.

I tried it like this for iptc keywords:

... sorry I cant post the code, there are some problems here it seems ? I did it with the conditional if  - if a keyword exists, 5 other keywords sould be added.

The idea is that a keyword like Architektur will be more tagged / defined by further keywords that are added. I found that the commands work for ONE keyword defining additional keywords, but when I add more - a long list with more than one if condition, Exiftool gives an error message.

Is there a way to look for keywords in iptc and xmp and add a list of other keywords if they do exist?

Many Greetings

Bette

Archive

[Originally posted by exiftool on 2009-08-28 18:22:48-07]

Hi Bette,

You should post commands inside a
Code:
block if you are
having troubles.

The command you want could look something like this:

Code:
exiftool -if "$keywords =~ /kingston/i" -keywords+=Ontario -keywords+=Canada FILE

- Phil

Archive

[Originally posted by pixelpicker on 2009-08-28 21:02:42-07]

Hi Phil! Works super!

I have 20 different codes for 20 keywords now. When I put more than one "if" in an order on the command line, I get an error message. Is it possible to put tehm all in one command/code?

Thank you very much Smiley

Many Greetings

Bette

PS: Jep - I put the
Code:
 
 in the first message, but it came always a "not accepted"

Archive

[Originally posted by pixelpicker on 2009-08-28 21:42:19-07]

OK - found it: its the -execute command.

THANK YOU, Phil!

Greetings

Bette