Split month in 3 parts

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

Moderator: Mr_Noodle

Split month in 3 parts 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.
Last edited by mav3rick on Thu Jul 31, 2014 12:03 pm, edited 1 time in total.
mav3rick
 
Posts: 2
Joined: Thu Jul 31, 2014 11:45 am

Re: Split month in 3 parts 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.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Split month in 3 parts 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
mav3rick
 
Posts: 2
Joined: Thu Jul 31, 2014 11:45 am

Re: Split month in 3 parts 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.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support