Author Topic: Modified to Created  (Read 1356 times)

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 11679
    • ExifTool Home Page
Re: Modified to Created
« Reply #15 on: January 11, 2017, 07:05:25 AM »
If you drag the "Test" folder onto the Terminal window it should type the full path of that folder for you.  If you do this, then you shouldn't get the "File not found" error (which I presume is because the path wasn't entered properly somehow).

When I drag an "untitled folder" folder from my Desktop for example, I get this entered in the Terminal window (OS X 10.10.5):

  /Users/phil/Desktop/untitled\ folder

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

findlay70

  • Jr. Member
  • **
  • Posts: 10
Re: Modified to Created
« Reply #16 on: January 11, 2017, 08:34:19 AM »
OK thanks Phil - I found the issue. I was dragging it to the terminal icon on the tray. Instead, I minimized the finder and pulled the folder across into an open terminal window and it worked... thanks for the pointer...
Andy

findlay70

  • Jr. Member
  • **
  • Posts: 10
Re: Modified to Created
« Reply #17 on: January 11, 2017, 08:45:02 AM »
So your final command would look like this:
exiftool '-DateTimeOriginal<FileModifyDate' -r -overwrite_original /Users/Andy/Documents/Test

OK, so I got this working - my path was incorrect.
But the issue now is that the the file/s have today's date which is not what I want. I want to preserve the capture/create date file, not overwrite the original.

I'll play around with it more to see what I can figure out.. thx

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 11679
    • ExifTool Home Page
Re: Modified to Created
« Reply #18 on: January 11, 2017, 10:06:59 AM »
You should add -P to the command to preserve the original FileModifyDate as I mentioned.

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