if..else and -p possible in single execute command?

Started by BogdanH, January 02, 2012, 03:57:48 AM

Previous topic - Next topic

BogdanH

Hi Phil,

Command:
exiftool -p "ISO exist" -if "$exif:ISO" photo.jpg
-will write "ISO exist" if ISO tag is defined.

Now, I would also like to get message ("No ISO") in case ISO tag isn't defined. Something like:
exiftool -p ("ISO exist" -if "$exif:ISO") else "No ISO" photo.jpg
-if possible at all, it should be a "single execute" command.

Yes, I have probably asked similar question before... :-[

Bogdan

Phil Harvey

Hi Bogdan,

Unfortunately there is no way to get exiftool to print something only if the condition fails.

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

BogdanH

Hi Phil,
Thanks for answer -at least now I'm sure it can't be done. But I have found solution (for GUI needs) inbetween, so everything is fine.

Bogdan