Count files / create subfolder

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

Moderator: Mr_Noodle

Count files / create subfolder Thu Mar 01, 2012 12:43 pm • by Royal12
New to Hazel v3 and also Apple.

I have a folder where I accumulate files. I would like to take those files when they >= 25 and move only 25 of those files to a unique subfolder named by date / time.

I would love to do this on my own if someone can get me pointed in the right direction.

Thanks!
R
Last edited by Royal12 on Thu Mar 01, 2012 5:14 pm, edited 1 time in total.
Thanks,
R
Royal12
 
Posts: 2
Joined: Wed Jan 25, 2012 9:18 pm

Re: Count files / create subfolder Thu Mar 01, 2012 4:48 pm • by Mr_Noodle
There is a Spotlight attribute called Number of Items which will give you the total number of files for a folder. What's not clear is which 25 files are moved. I'm guessing you would use the new "is among the X" operator for that though.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Count files / create subfolder Fri Mar 02, 2012 11:13 am • by Royal12
Played with this overnight and I am missing something. I will take any input on this.

I can only get the rule to run if I use the "is > than" 25 operator.

The rule will then grab all files in the folder, not just the 25 or until the file count is < 25 - it takes all files.

Sort in to subfolders then sorts the images based on one of the selected files meta information. I can not get Hazel to generate unique folders containing exactly 25 files.
Thanks,
R
Royal12
 
Posts: 2
Joined: Wed Jan 25, 2012 9:18 pm

Re: Count files / create subfolder Fri Mar 02, 2012 12:53 pm • by Bryan
Royah,

It may be helpful to know why you are trying to do this. There may be a more elegant solution out there, than what you are thinking. (Still a newbie to Hazel myself)

Bryan
Bryan
 
Posts: 25
Joined: Wed Jan 11, 2012 4:34 pm
Location: Maryland


Return to Support