Image-ExifTool - Re: Help Using Conditional Logic Please

Posted on Tue Jul 15 17:39:44 2008 by beach9000 in response to 8300 (See the whole thread of 8)
Re: Help Using Conditional Logic Please
As a follow up, what's the safe way to test conditions?

From the above have I have the following line in a Windows prompt:

exiftool -if "$model =~ /NIKON D300/" DSC_2808.jpg

and it gives me this response:

1 files failed condition

But if I do a normal exiftool on the file, I can get this line:

Camera Model Name : NIKON D300

When I first saw the failed condition error I thought that it meant my expression was wrong, but since I'm having a hard time getting it to succeed, I'm beginning to think that I've misinterpret it. Have I?

Eddy.

Direct Responses: 8317 | Write a response