Sorting Files by Date

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Sorting Files by Date Tue Sep 03, 2024 3:07 pm • by Skabichevsky
I have looked for an answer on this forum but haven't found it yet. Please let me know if you can help.

I am trying to create a Hazel rule that will take image files in one directory (let's call it the Landing Zone directory) and, depending on the creation date of each file, move it to another (existing) folder whose name corresponds to the year and month of the file.

Example: File "image.NEF" was created on 9/1/2024. When that file is dropped into the Landing Zone directory, I would like to move it to a subfolder named "2409 RAW" in a different folder tree. The name of the target subdirectory corresponds to the creation date of the file (9/1/2024 vs. 2409). The 2409 RAW subfolder already exists, but if it didn't it would need to be created, again based on the date of the file.

Is this possible without scripting?

Thanks.
Skabichevsky
 
Posts: 1
Joined: Tue Sep 03, 2024 2:53 pm

Re: Sorting Files by Date Wed Sep 04, 2024 8:32 am • by Mr_Noodle
Please do not post support questions in the Forum/Site Discussion forum. That is for issues with this forum or site, not with Hazel itself.

You can do what you want via the Sort into subfolder action. In the pattern, you can drag in the date created and then edit that pattern to match what you want.
Mr_Noodle
Site Admin
 
Posts: 11429
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support