Image-ExifTool - Problems with the copy number (%%c) code

Posted on Thu Apr 17 01:21:45 2008 by darryl
Problems with the copy number (%%c) code

Hi Phil:

I've got a Perl script that's making a call to the exiftool command-line because I'm too lazy to extract the info just to make a SetFileName call. Also, by calling exiftool externally, I can run in parallel! (Ew!)

Anyways, this command-line is failing for me:

$command = 'exiftool -q -d %Y%m%d_%H%M%S-%%c.%%e "-filename<DateTimeOriginal" '."tmp/$file" ;

Note that the syntax is slightly different than what you have in your documentation:

exiftool -d %Y%m%d_%H%M%%-c.%%e "-filename<CreateDate" DIR

Is that hyphen in the right place? Shouldn't it be before the %%?

At any rate, I end up with a file named: 20080306_104855-%c.jpg

:-{
Direct Responses: 7691 | Write a response