Hi. I have a problem which I think is related to this. I am trying to copy across my IPTC tags to Windows XP tags, so that I can search for photos in Windows by tags. At the moment I am using the following:
exiftool -ObjectName>XPTitle -Caption-Abstract>XPSubject -Keywords>XPKeywords test.jpg
All is working well apart from the keywords - only the first word on the list is copied across. I am guessing this is because IPTC Keywords is a list tag and XP Keywords is a normal text tag. Is there any way to convert from one to the other?
Wow, that was pretty impressive. Hooray for concatenation.
That was obviously just too easy, so here's another one. Now I'd like to be able to take the IPTC location tags (City, Sub-location, etc.) and add them to my shiny new XP Keywords. My first step was to try:
but this didn't work because XP Keywords is not a list. Is there a way to append text to normal tags like this? I suppose I could first add them to IPTC Keywords and then copy the whole lot across, but that doesn't seem like the most efficient approach.
Hi Phil. Apologies for resurrecting an old thread, but this follows on directly from what I was trying to achieve a while back. Thanks to your very helpful answer from last time I have been using the following string to copy tags into XPKeywords:
exiftool -"XPKeywords<$Keywords, $Sub-location, $City, $Province-State, $Country-PrimaryLocationName" - FILE
However if just one of the tags is missing (e.g. City), then none of them are copied across to XPKeywords, and I get this message:
Warning: [minor] Tag 'City' not defined - FILE
I would like to be able to have the same string that I can use for batch processing different photos which may not always have all of the tags - is there a way of doing this?Many thanks, Adrian