ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: MrPhil on May 14, 2024, 01:10:17 PM

Title: Concatenating Fields
Post by: MrPhil on May 14, 2024, 01:10:17 PM
Sorry, but I should be able to get this to work - but I can't. Maybe I need more coffee

I want to concatenate two fields into one...

Destination field - ImageDescription

Source Fields - IPTC.ObjectName  and IPTC.Caption-Abstract

exiftool "-ImageDescription<$ObjectName $Caption-Abstract" {file}
I get the error:

Warning: No writable tags set from {file}
    0 image files updated
    1 image files unchanged

I know I am doing something silly, but I can't see it

Thanks

Title: Re: Concatenating Fields
Post by: StarGeek on May 14, 2024, 02:26:40 PM
Do both tags exist?  What OS are you using?

The command you gave works in Windows CMD as long as both ObjectName and Caption-Abstract. If one of them doesn't exist, then you should get a warning like
Warning: [minor] Tag 'Caption-Abstract' not defined

If you are not using Windows CMD, then change the double quotes into single quotes.
Title: Re: Concatenating Fields
Post by: MrPhil on May 14, 2024, 03:31:23 PM
That was it :-)

MacOS - Changed the double-quotes to single-quotes.

Many thanks

Phil