Page 1 of 1

Split month in 3 parts

PostPosted: Thu Jul 31, 2014 11:59 am
by mav3rick
I just started using hazel and it is really fun but one thing I can't menage to do is this:

I want to make an archive folder which will move the file to the YEAR --> Month --> Date 1-10 --> Extension


So the structure is like this

Archive
|_ 2013
|-Nov
|- 1-10
|- 11-21
|- PNG
|- JPG
|- PSD
|- 21-31
|- DOC
|- 2014

I would like to split the month in 3 parts so every 10 days, if this is too complicated every day will work..

I think this is hard and I would really appreciate if you could help me.

Re: Split month in 3 parts

PostPosted: Thu Jul 31, 2014 12:08 pm
by Mr_Noodle
Where is the date coming from? If it's an attribute on the file, you can create a condition like "Date occurs before" and specify which days of the month for it to match.

Re: Split month in 3 parts

PostPosted: Thu Jul 31, 2014 12:14 pm
by mav3rick
The date is when the file was added:

date added(Y)-▸date added(M)▸date added(D)▸extension

For now I use this.

I would like for D to split it every 5 days.

So if the file was added (PDF)

M-D-Y
6/15/2014

File structure for the file should be:
2014 -▸ Jun -▸ 11-21 -▸ PDF

Re: Split month in 3 parts

PostPosted: Thu Jul 31, 2014 3:12 pm
by Mr_Noodle
So, add conditions like:

Date added occurs after (1st of the month)
Date added occurs before (11 of the month)

Do this for each grouping and file it into its appropriate folder from there.