Easy newbie question ;-)

Started by Valith, May 09, 2017, 02:13:05 PM

Previous topic - Next topic

nndrom

Hi Phil,

Many thanks, you saved me!

Nick

Valith

Quote from: Valith on May 09, 2017, 04:23:30 PM
I changed the code again to:

exiftool '-FileModifyDate<FileModifyDate#' '-FileModifyDate<CreateDate#' '-FileName<${FileModifyDate}_iPhone 4(%f)%-c.%le' '-FileName<${CreateDate}_${Model;}(%f)%-c.%le' -d %Y-%m-%d_%H.%M.%S *.JPG


Thanks!

I'm also thinking of adding a part to my syntax to save the original filename in EXIF (just in case, might be useful to store it in EXIF, not only in the new filename, between the (...). I think it's easier to use the EXIF comments field, when i need to compare stuff to the original filename):

So i'll add this, right?:
'-Comment<FileName'

So the new one would be (including using the #'s):

exiftool '-Comment<FileName' '-FileModifyDate#<FileModifyDate#' '-FileModifyDate#<CreateDate#' '-FileName<${FileModifyDate}_iPhone 4(%f)%-c.%le' '-FileName<${CreateDate}_${Model;}(%f)%-c.%le' -d %Y-%m-%d_%H.%M.%S *.JPG


StarGeek

Comment is not a safe place to put metadata.  Many programs overwrite it without regards for what may already be there.  I would suggest using PreservedFileName, ObjectName, or Title.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).