I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-04-20 18:02:21-07 by pdi in response to 4943
Re: -if with DateTimeOriginal
Phil,

Thank you very much, I wouldn't have spotted it :-) I'm not familiar with Perl, but I got the gist of the pattern matching you propose and it works.
I found a peculiar quirk though. When using the first command from my first post the DateTimeOriginal of those fotos is reported correctly as 0000:00:00 00:00:00. When I test with

exiftool -if "$exif:DateTimeOriginal =~ /00000000_000000/" -r -s -s -s -FileModifyDate -d "%Y%m%d_% +H%M%S" DIR

nothing comes up. It turns out that, for some reason, the formatting of 0000:00:00 00:00:00 results in 00000002_000000 instead of 00000000_000000. I cannot tell if it is due to the obviously poor EXIF data or my lack of understanding of exiftool.

By the way, thank you for your suggestion about -directory tag, but it got there due to the needs of the naming scheme and with your help (see thread 4243).

pdi
Direct Responses: 4945 | Write a response