Desktop Cleaning

From your noodle to other noodles. Talk about ways to get the most from Hazel. Even exchange recipes for the cool rules you've thought up. DO NOT POST YOUR QUESTIONS HERE.

Moderators: Mr_Noodle, Moderators

Desktop Cleaning Fri Aug 03, 2007 9:34 am • by SteveH
Are there any good examples or rules that help to keep the desktop tidy.

I was trying to implement a 'traffic light' scheme where files on the desktop (these are temporary in-work files in my world) are labelled orange if they are left for day, red if left for another day and then deleted (with a growl alert) after that. Ideally if a file is worked on it should go back to unlabelled.

I got a rule that is close but doesn't go back once it is worked on and will occasionally trigger and run through all the states if I download an old file to the desktop.

Any better way to achieve this?
SteveH
 
Posts: 12
Joined: Tue Mar 27, 2007 5:22 pm

Sun Aug 05, 2007 3:11 pm • by Mr_Noodle
The sample rules have some basic rules for coloring based on time. The important thing is learning how to use the different date attributes.

In your case, it seems you want to color by time since it was last worked on. I'm not sure what your definition of "worked on" is so I'm going to assume it's when it's accessed (you can change it to use Date Modified if you consider "worked on" to mean that the file was actually changed). You would also want to use date added for when you first add the file to the folder.

You would have probably have rules like the following:

"If date last accessed is not in the last 3 days AND date added is not in the last 3 days, move to trash"
"If date last accessed is not in the last 2 days AND date added is not in the last 2 days, set color to red"
"If date last accessed is not in the last day AND date added is not in the last day, set color to orange"

Ordering is important since the first rule that matches is the one that gets applied. Since files that are older than 2 days are also older than 1 day, you have the 2 day rule occur first so that it takes precedence. You could also add conditions to say "not in the last day but in the last 2 days" but this is more succinct.

Now, keep in mind Date Accessed is updated when you open it with an app. Just dragging it around will not update it (though dragging it out of the folder and back in will update the date added).

Try it out and let me know how it works out.
Mr_Noodle
Site Admin
 
Posts: 8571
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Desktop Cleaning Sat Mar 15, 2008 1:39 pm • by alastor933
"(though dragging it out of the folder and back in will update the date added)"

Will Hazel also update dateAdded when moving items between watched folders?

(and it appears that markup codes don't work).
alastor933
 
Posts: 53
Joined: Wed Mar 05, 2008 3:52 pm
Location: Utrecht, Netherlands

Re: Desktop Cleaning Mon Mar 17, 2008 5:52 pm • by Mr_Noodle
Yes, it should update the date added whenever it's moved to a folder Hazel is watching.

And yes, looking into quoted text being white on white. Are there other markups that aren't turning out?
Mr_Noodle
Site Admin
 
Posts: 8571
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Tips & Tricks - DO NOT POST QUESTIONS