Sorting the raw files by year

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

Moderator: Mr_Noodle

Sorting the raw files by year 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.
Artak
 
Posts: 14
Joined: Mon Nov 12, 2018 3:16 pm

Re: Sorting the raw files by year 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.
Mr_Noodle
Site Admin
 
Posts: 12052
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Sorting the raw files by year 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.
Artak
 
Posts: 14
Joined: Mon Nov 12, 2018 3:16 pm

Re: Sorting the raw files by year 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.
Artak
 
Posts: 14
Joined: Mon Nov 12, 2018 3:16 pm

Re: Sorting the raw files by year 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.
Mr_Noodle
Site Admin
 
Posts: 12052
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Sorting the raw files by year 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.

Image

Image

Artak
 
Posts: 14
Joined: Mon Nov 12, 2018 3:16 pm

Re: Sorting the raw files by year 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.
Mr_Noodle
Site Admin
 
Posts: 12052
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Sorting the raw files by year 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.
Artak
 
Posts: 14
Joined: Mon Nov 12, 2018 3:16 pm


Return to Support