Trying to get Iphoto to correctly chonologicallly sort some old photos

Started by trinsic, December 04, 2023, 07:15:53 PM

Previous topic - Next topic

trinsic

I have some photos taken before 2002 that exist in a folder tiled by the date the photo set was taken.
The photo file dates in these folders don't to seem to match the folder date.
So I was thinking that I would go in and manually change the FileModifyDate and FileAccessDate tags to correct the way in which Iphoto sorts these photos since there are only about 45 photos in a few folders.

Is this the best way to do this, and if so whats the best way to batch change these photos in these tiled by date folders?

A photo is attached regarding the folder name "Date" vs the meta information which is a year off. every photo is differnt so I was thinking I could manually adjust the tags on a per folder basis.

Phil Harvey

If the directory name always contains only year and month, then you could do this:

exiftool '-filemodifydate<${directory}01 000000' -r DIR

Which would set the date/time to 00:00 on the 1st of the month given by the directory name.

If DIR is the top-level directory name, then this command will recurse through all subdirectories, setting FileModifyDate on a per-folder basis as you wanted.

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

trinsic

Quote from: Phil Harvey on December 05, 2023, 08:00:37 AMIf the directory name always contains only year and month, then you could do this:

exiftool '-filemodifydate<${directory}01 000000' -r DIR

Which would set the date/time to 00:00 on the 1st of the month given by the directory name.

If DIR is the top-level directory name, then this command will recurse through all subdirectories, setting FileModifyDate on a per-folder basis as you wanted.

- Phil

Is there a way to manual set the date/time of the file tags in the folders without having to grab it from another source? I only have a few folders and I don't want to have to figure out the correct scheme to get the dating right.

Phil Harvey

To simply set the FileModifyDate, do this:

exiftool "-filemodifydate=2023:12:05 12:20:00" DIR

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

trinsic

Quote from: Phil Harvey on December 05, 2023, 12:20:47 PMTo simply set the FileModifyDate, do this:

exiftool "-filemodifydate=2023:12:05 12:20:00" DIR

- Phil

Thank you.