Append Description tag AND move file to new directory

Started by johnicepick, January 30, 2024, 09:51:37 AM

Previous topic - Next topic

johnicepick

Hello Everyone,

Over the past days I got my scripts together from various forum posts, great knowledge source!
But now I have a problem and I don't know why it happens:

1) I need to append (add extra tag/ text) the description of a photo.
2) The photo with the newly added description need to be moved to a new directory

The code below adds the text (so #1 is working), but it makes a copy at the second directory. I don't want a copy, I want the file to be moved from the original directory.


exiftool  "-Description<${Description} extra info" -directory=c:/FTP-Root/ftp-databak/Description-Test2 c:\FTP-Root\ftp-databak\Description-Test1
I'm doing something wrong, but I don't know what. Looking for advice, thank you

(A sidenote:
I noticed that when I used "Caption-Abstract" doesn't add any text, but if I use the variable "description" it works, bug? )


Phil Harvey

Add -overwrite_original to the command to delete the original after writing the copy.

Quote from: johnicepick on January 30, 2024, 09:51:37 AMI noticed that when I used "Caption-Abstract" doesn't add any text, but if I use the variable "description" it works, bug?

FAQ 3 ?

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

johnicepick

Fantastic!!!

I used "-delete_original" before, but there I got another error code. I came also -overwrite_original across but I didn't think it could be used that way.

But hey it works!! Thank you very much!

Regarding Faq3: I had a feeling that the Description is an XMP tag and not an IPTC tag. Thanks to your -a -g1 readout I was right.

Phil Harvey

Quote from: johnicepick on January 30, 2024, 10:15:53 AMI used "-delete_original" before,

Right.  I can see how that is misleading.  The -delete_original option is used to delete "_original" files left over from a previous command.

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