Page 1 of 1

Count and Move Files

PostPosted: Mon Feb 13, 2017 5:48 pm
by mrrstatham
I am brand new to Hazel and have spent hours trying to get a rule to count the number of files in a folder and then move them to a subfolder with the date added as the folder name. Please can someone help? I am totally stuck.

To keep things simple (and hopefully clear) I have a folder on my Desktop called "Expenses" and once there are 10 PDF's in here I want Hazel to create a new folder (within the Expenses folder) using the current date as the name and move the 10 PDF's into that folder.

In my head I thought this would work, I have the following rule pointing at the Desktop-

If [all] of the following conditions are met-
[Number of items] [is] [10]
[Sort into Sub folder] with pattern [date added]


But it doesn't work :( and i have no idea why not? Sorry if this is a dumb question.

Re: Count and Move Files

PostPosted: Tue Feb 14, 2017 12:54 pm
by Mr_Noodle
You can't count the number of items of the folder Hazel is monitoring. Keep in mind that the rules apply to the items within a folder, not the folder itself.

Instead, you can try to have Hazel monitor the folder containing this folder. Have the rule match the folder. From there, you can do several things:

- Move the whole folder to the new location and rename it.
- Have Hazel go into that subfolder (see the sticky article at the top of this forum on how to do that), then have another rule process the files within.

Re: Count and Move Files

PostPosted: Wed Feb 15, 2017 6:54 pm
by mrrstatham
Thank you so much for this, seriously appreciate the help!