Conditional commands?

Started by Beholder3, October 08, 2012, 04:30:09 PM

Previous topic - Next topic

Beholder3

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?

Phil Harvey

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