Tagging a Folder on the Desktop

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

Moderator: Mr_Noodle

Tagging a Folder on the Desktop Mon Jun 27, 2016 2:40 am • by TheOneTrueRobb
OK, I have a folder on the desktop, "Keep For 3 Months". Basically, I toss stuff in there that I want to trash, but not right away. This mechanism is working fine. However, I want to tag this folder if there's something in it, and remove the tag when it's empty. I'd like to do this with a script specific to this folder, not a "Desktop" script.

Any hints?
TheOneTrueRobb
 
Posts: 22
Joined: Fri Jul 27, 2012 10:46 pm

Re: Tagging a Folder on the Desktop Mon Jun 27, 2016 11:41 am • by Mr_Noodle
If you want the rule to apply to that folder (and not the files within), then you need to have Hazel monitor the Desktop, and then have the rule check whether the folder is empty. Sub-file/folder count is probably the best way to do that.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Tagging a Folder on the Desktop Wed Jan 04, 2017 11:19 pm • by TheOneTrueRobb
Mr_Noodle wrote:If you want the rule to apply to that folder (and not the files within), then you need to have Hazel monitor the Desktop, and then have the rule check whether the folder is empty. Sub-file/folder count is probably the best way to do that.


Yeah, finally did it this way, which, of course, works fine. I had a vague worry about using a whole lot of system resources for some reason, but not a problem.
TheOneTrueRobb
 
Posts: 22
Joined: Fri Jul 27, 2012 10:46 pm


Return to Support