Author Topic: Wildcards or batch processing - how to?  (Read 4123 times)

AnneA

  • Newbie
  • *
  • Posts: 2
Wildcards or batch processing - how to?
« on: April 06, 2010, 06:56:22 AM »
First: Many thanks for all the effort you put into this wonderfully useful and flexible tool!


I need to copy tags between files based on the identity of their file name.

For example this works fine:

exiftool -TagsFromFile from/filename.JPG  -IPTC:Caption-Abstract to/filename.JPG

Basically I want to batch batch process the last command, doing something like this:

exiftool -TagsFromFile from/*.JPG  -IPTC:Caption-Abstract to/*.JPG

Unfortunately this doesn't work. How can I achieve the intended behaviour?

Anne

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16681
    • ExifTool Home Page
Re: Wildcards or batch processing - how to?
« Reply #1 on: April 06, 2010, 07:17:44 AM »
Hi Anne,

You're welcome. :)

Try this:

exiftool -tagsfromfile from/%f.%e -iptc:caption-abstract -ext jpg to

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

AnneA

  • Newbie
  • *
  • Posts: 2
Re: Wildcards or batch processing - how to?
« Reply #2 on: April 06, 2010, 07:30:07 AM »
exiftool -tagsfromfile from/%f.%e -iptc:caption-abstract -ext jpg to

Wonderful – that works smoothly!

Thank you VERY much for your swift support!

(I just donated 10 bucks)

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16681
    • ExifTool Home Page
Re: Wildcards or batch processing - how to?
« Reply #3 on: April 06, 2010, 08:56:26 AM »
Hi Anne,

Thanks for the donation, I didn't realize that was you.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).