Author Topic: Process images only if FileModifyDate not equals FileName  (Read 410 times)

vicmarto

  • Jr. Member
  • **
  • Posts: 27
Re: Process images only if FileModifyDate not equals FileName
« Reply #15 on: February 27, 2019, 10:05:01 AM »
I'm afraid that I'm a bit lost here.  When you say the FileModifyDate of your photos is a total mess, can you give an example for one file?

- Phil

This one, for example:

$ exiftool -s -time:all -a -G0:1 2002-12-27\ 22.14.32-1.jpg
[File:System]   FileModifyDate                  : 1990:01:01 00:00:00+09:00
[File:System]   FileAccessDate                  : 1990:01:01 00:00:00+09:00
[File:System]   FileInodeChangeDate             : 1990:01:01 00:00:00+09:00
[EXIF:IFD0]     ModifyDate                      : 2002:12:27 22:14:32
[EXIF:ExifIFD]  DateTimeOriginal                : 2002:12:27 22:14:32
[FlashPix]      ExtensionCreateDate             : 0
[FlashPix]      ExtensionModifyDate             : 0

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14405
    • ExifTool Home Page
Re: Process images only if FileModifyDate not equals FileName
« Reply #16 on: February 27, 2019, 10:20:31 AM »
Ah.  The problem is that your last command needs to set the FileModifyDate for files in the destination directory, not the source directory.  So you can't use "." as a directory name in the command with -if either.  See my other post when I move this out of the -common_args, and change the "." for this command only.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

vicmarto

  • Jr. Member
  • **
  • Posts: 27
Re: Process images only if FileModifyDate not equals FileName
« Reply #17 on: February 28, 2019, 06:06:43 AM »
Thanks Phil, let's continue in the other topic, now they are related.