Page 1 of 1
Sorting the raw files by year

Posted:
Wed Oct 15, 2025 8:26 pm
by Artak
I have bunch of raw files from Canon camera CR2 and CR3 and DNG extensions in one Folder.I want to sort them by year created and if folders doesn't exist than let Hazel create them like 2023, 2024, 2025 and put them there accordingly. I have Hazel 6. Please help. Thanks.
Re: Sorting the raw files by year

Posted:
Thu Oct 16, 2025 9:43 am
by Mr_Noodle
Look at the Sort into Subfolder action. You can use a date in the pattern and format the date to only use the year.
Re: Sorting the raw files by year

Posted:
Fri Oct 17, 2025 2:38 pm
by Artak
I tried two ways to sort the RAW pictures in the folder Lightroom files on my desktop. See the attached screenshots.In both cases nothing happens. One is the way you suggested "with sort by date" and the other is a script. Any suggestion will be appreciated.
Artak
[img]using script.jpg/img]
P.S I can't attach a jpg file to the post! So this is another problem.
Re: Sorting the raw files by year

Posted:
Fri Oct 17, 2025 3:27 pm
by Artak
[img]https://www.dropbox.com/scl/fi/0azf2nk8df427m0p4gc8o/using-script.jpg?rlkey=4i8tpxhllxsej4jepqwcoj3qa&dl=0/img]
this way doesn't work as well.
Re: Sorting the raw files by year

Posted:
Mon Oct 20, 2025 8:53 am
by Mr_Noodle
Can you post the non-script version again? You will need to host the image yourself like the one above or use imgur.com.
Re: Sorting the raw files by year

Posted:
Mon Oct 20, 2025 9:12 am
by Artak
Mr_Noodle wrote:Can you post the non-script version again? You will need to host the image yourself like the one above or use imgur.com.
All of a sudden it works now. But creates folder for each day not for the year.Attached see the pictures.


Re: Sorting the raw files by year

Posted:
Tue Oct 21, 2025 8:44 am
by Mr_Noodle
You need to edit the format of the date created token to only use year.
Re: Sorting the raw files by year

Posted:
Tue Oct 21, 2025 3:45 pm
by Artak
Mr_Noodle wrote:You need to edit the format of the date created token to only use year.
Thanks Mr_Noodle its working now.