Problems with the copy number (%%c) code

Started by Archive, May 12, 2010, 08:54:20 AM

Previous topic - Next topic

Archive

[Originally posted by darryl on 2008-04-16 22:21:45-07]

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:

Code:
$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 http://www.exiftool.org/filename.html" target="_blank">documentation:

Code:
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

:-{

Archive

[Originally posted by darryl on 2008-04-16 22:27:07-07]

Doh -- I think it's because the version of exiftool my host has installed is old:  6.42

Bleh.

Archive

[Originally posted by exiftool on 2008-04-17 11:10:38-07]

Yes.  The '-' modifier was added to %c in version 6.63.