I took a bunch of vacation photos and didn't realize that the camera date was incorrect. The photos all start at Dec 31, 2012 11:00pm, whereas they should start at June 28, 2022 11:42am. I've looked at the touch and SetFile terminal commands, but just can't seem to find a way to recursively add the proper amount of years, days, minutes, to each file to get them to the correct date. Any suggestions?
1 Answer
The app A Better Finder Attributes, although a bit pricy for some at US$19.95, is an amazing tool for, well, changing file & folder attributes.
Here are screenshots of the date manipulation options:
Additional options under the Action: drop-down:
Note: I'm a satisfied paying user of the apps A Better Finder Attributes and A Better Finder Renamer, and have no financial or other ties to the developer.
-
This is the "correct" answer in terms of which software to use, but it would be much clearer if a) the screenshots were the other way round and b) they showed using "Adjust creation and modification dates" (not setting creation date). Better to link to developer publicspace.net/ABetterFinderAttributes/index.html– GilbyJul 6 at 23:33
-
I will take a look at the app. But I have to believe that this can be accomplished in Terminal as most of these finder and disk editing apps are merely GUIs for Terminal commands. Jul 7 at 13:58
-
Sure it can be done with a script, but rather than taking days/weeks to get assistance, you could have used ABFA and fixed all the dates in 5 minutes.– GilbyJul 7 at 23:02
set t0 [file atime "your file name"]
set t2 [clock add $t0 9 years 178 days 12 hours 42 minutes]
file atime "your file name" $t2
This gets the file's atime, bumps it, and sets it. Repeat formtime
.