Basically, here is what I would do. I'm sorry that this isn't more than pseudocode - perhaps this weekend I'll have more time to delve into this problem.
(1) Separate your photos into day-based folders. This is easy with Hazel and it sounds like you've already got this figured out.
(2) Obtain a list of the files & order by creation date.
(3) In a loop starting with the youngest file, do something like this:
- Code: Select all
for (theCurrentFile in myListOfFiles)
theNextFile = myListOfFiles[theCurrentFile.index + 1]
if (theNextFile.CreationDate - theCurrentFile.CreationDate > 60) then
move theCurrentFile to theMoveFolder
theMoveFolder = create new folder
else
move theCurrentFile to theMoveFolder
end if
next
The basic idea is that you're moving every file that is an hour or more older than the next file when sorted by date into a specific "event" folder. If the next file is an hour or more younger than the current file in the loop, then you create a new event folder for the next file, while moving the last photo into the current event folder.
With applescript, this is relatively straightforward as a concept, but the implementation will be a bit tricky for an inexperienced coder.
Best of luck! I'll check back this weekend to see if I have time to write this out for you.