ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Beholder3 on October 08, 2012, 04:30:09 PM

Title: Conditional commands?
Post by: Beholder3 on October 08, 2012, 04:30:09 PM
Hi,

is it somehow possible to have a conditional command sequence?

Background:
I would like to these commands:
-exif:LensModel<makernotes:LensType -XMP:Lens<makernotes:LensType -exif:LensInfo<LensID -exif:LensMake<LensManufacturer
on all pictures I select but the following ones
-exif:FocalLength<copy2:FocalLength -exif:FocalLengthIn35mmFormat<Calc35mm
only on files where copy2:FocalLength is less than 10 mm.

Currently I do this by running twice over the files, first processing all files and then running the latter part only on the ones in focal range 8-10mm.

I would like to do this using a single run to save some time.

Is it possible?
Title: Re: Conditional commands?
Post by: Phil Harvey on October 09, 2012, 07:23:10 AM
The application can't do this in a single pass.  The only way to do this in one pass would be to write a Perl script using the ExifTool API.

- Phil