2

I traveled to another country and forgot to change the time of my Nikon camera to local time. So after returning I used exiftool(exiftool -AllDates+=1 *.*) to change time of all the photos but in Finder, "Date Created" changes to present day.

How can I get real created date displayed in Finder?

I understand a new file is created with exiftool so Date Created is present date.

Exif data after shifting the date:

File Modification Date/Time     : 2018:08:24 09:44:32-03:00
File Access Date/Time           : 2018:08:24 09:48:10-03:00
File Inode Change Date/Time     : 2018:08:24 09:44:32-03:00   
Modify Date                     : 2018:08:19 18:46:46
Date/Time Original              : 2018:08:19 18:46:46
Create Date                     : 2018:08:19 18:46:46

A Get Info of an original file enter image description here
The image was created at 9:04.
9:30 I was still taking pictures, not editing or something

I don't get why Apple does not have a "Date/Time Original" or "Create Date" tab in Finder

13
  • You said, "I don't get why Apple does not have a "Date/Time Original" or "Create Date" tab in Finder", well Finder in List View does have a Date Created column, you just have to right-click on the column header bar and select it. If you want to modify the dates, have a look at the man page for SetFile and GetFileInfo. Commented Aug 24, 2018 at 18:35
  • 1
    "Date Created" from Finder doesn't take the date from EXIF "Create Date". Both man pages say those commands are deprecated.
    – dstonek
    Commented Aug 24, 2018 at 18:46
  • Just because a command is deprecated doesn't mean it cannot be used! If you want the file to reflect the proper Create Date in Finder then using SetFile is one way to go. I've used it more times that I can remember to get dates fixed to how I wanted them. Commented Aug 24, 2018 at 18:55
  • The Finder tells you when the actual file was created, not when the picture was taken. This is intentional, and the correct behavior. The EXIF exists for situations like this by embedding the "photo" creation date in metadata. That way no matter how many copies are created and when they are created the date the image was taken is preserved. One tip... if you use Photos in macOS (and this applies to other photo apps as well) you can adjust the EXIF dates there. (Select image, Get Info, double click on the date). This usually won't effect the creation date in the finder.
    – sdmeyers
    Commented Aug 24, 2018 at 19:27
  • 1
    In your OP the image under "A Get Info of an original file" the following compound command will set the Created: and Modified: times to the value of the Modified: time. Assuming the images have a .jpg extension and all the files are in the same directory, in Terminal first cd "$dirname" and run the following command: for f in *.jpg; do /usr/bin/SetFile -d "$(/usr/bin/GetFileInfo -m "$f")" "$f"; done That said, I'd make a copy of the target directory and test it on that first. Commented Aug 24, 2018 at 19:38

1 Answer 1

1

You can create your own service in automator to provide this info in a popup.

  1. Create a New Service in Automator and set it so the service receives image files in Finder

  2. Add a Run Shell Script Action. Pass input as argument. One-liner shell script should be (depending on your path to exiftool) /usr/local/bin/exiftool -b -DateCreated $1

  3. Pass the result into a Set Value of Variable Action. Create a new variable (I called mine EXIFDateCreated

  4. Add a Get Value of Variable and select the variable you created above. Make sure to check the Ignore this actions input (...the first time you use this action, to separate the creation of variables chain from the getting. You can repeat the above steps numerous times to add other files you want to display, but for subsequent Get Value of Variables you would not ignore input).

  5. Add a Run AppleScript Action the AppleScript could be:

    on run {input, parameters}
        set dateCreated to first item of input as text
        display dialog "Date Created: " & dateCreated

        return input
    end run

Here's a screen cap of the whole Automator service... enter image description here Save the Service as something like "Show EXIF Create Date" and make sure it is activated in the Keyboard Preferences (Under the Shortcuts tab). The action should now show up when you right click/command click on an image in the finder.

Note this can be tweaked to create a pretty decent alternate Info dialog, though this just shows the basics of how it can come together.

8
  • I have a problem with the file paths: names with blanks (file not found)
    – dstonek
    Commented Sep 3, 2018 at 20:23
  • Need more information. Explain in depth what your problem is.
    – sdmeyers
    Commented Sep 4, 2018 at 13:30
  • I need to replace $1 of /usr/local/bin/exiftool -b -DateCreated $1 by something that replace spaces between filenames by "\ ". The pop-up display several File Not Found for each string separated by blanks in file path. The action “Run Shell Script” encountered an error: “File not found:
    – dstonek
    Commented Sep 4, 2018 at 13:46
  • replace $1 with "$*"
    – sdmeyers
    Commented Sep 4, 2018 at 13:50
  • Also I really think you'd be happier just using the "Photos" app or "Lightroom" if you'd rather. Both of these apps manage images beautifully and accomplish everything you are asking for.
    – sdmeyers
    Commented Sep 4, 2018 at 13:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .