You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Sort files into folders by date created

It seems like this might be possible but I haven't found exactly what I'm looking for online... I have a ton of pictures and videos that I'd like to sort into folders based on the date the pictures or videos were taken. Can I automate the whole process of creating the folders named by date and then moving the files into the correct folder? I just discovered automator today and have no experience with apple script so I need specific directions. :)

iMac Line (2012 and Later)

Posted on Jan 10, 2019 8:44 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 13, 2019 4:58 AM

I have posted version 2.0 of the Ruby Script on my Google Drive Shared folder. It is nearly 40% faster than previous versions, for the same quantum of files.



I revised the file_created_date function to only run exiftool once, but look for DateTimeOriginal, CreateDate, and ModifyFileDate tags. Usually there are two found in Raw, and non-Raw camera .jpg files, and frequently identical, but just in case, I take the oldest date found. Other images will have the ModifyFileDate tag only — but no CreateDate. PDF have the ModifyFileDate, and CreateDate tags. As presently written, the script is ignoring PDF files.


Let me know if this solution is working for you, or if you have additional questions.

Similar questions

25 replies

Sort files into folders by date created

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.