Count and Move Files

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

Moderator: Mr_Noodle

Count and Move Files 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.
mrrstatham
 
Posts: 2
Joined: Mon Feb 13, 2017 8:53 am

Re: Count and Move Files 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Count and Move Files Wed Feb 15, 2017 6:54 pm • by mrrstatham
Thank you so much for this, seriously appreciate the help!
mrrstatham
 
Posts: 2
Joined: Mon Feb 13, 2017 8:53 am


Return to Support