writing directory name into xmp

Started by ekry, April 27, 2013, 07:41:40 PM

Previous topic - Next topic

ekry

Hi

I've seen https://exiftool.org/forum/index.php/topic,2731 writing filename information into metadata is no problem. How can I fetch the name of the current directory and write it into let's say "Title" as in:

exiftool "-IPTC:Caption-abstract<filename" ~/Desktop/FOLDER

thank you very much!

Phil Harvey

The command is:

exiftool "-IPTC:Caption-abstract<directory" ~/Desktop/FOLDER

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