Problems with the exiftool -p option

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

Previous topic - Next topic

Archive

[Originally posted by pauljsolomon on 2008-03-17 22:48:18-07]

I am writing a series of scripts for exiftool and am trying to use the -p (lowercase p) option.
When I use it by itself, it works perfectly.  If I add any other operations to it (e.g. adding a keyword),
no output happens.  Am I using this correctly?  Examples below;

1)
$ exiftool  -p 'File $FileName was created on $DateTimeOriginal' *.CR2

File IMG_9510.CR2 was created on 2008:02:24 10:17:01

2)
$ exiftool  -p 'File $FileName was created on $DateTimeOriginal' -keywords+="testkeyword" *.CR2

    1 image files updated

I've tried moving the -keywords option *before* the -p option with the same results.  I'd like to be able to have some
terse logging (not the -v output)...

Thoughts?

-paul.

Archive

[Originally posted by exiftool on 2008-03-18 01:27:05-07]

Hi Paul

Exiftool has two modes, read and write.  
You can't extract tags with -p and write in
the same command.

-Phil