Page 1 of 1

Tagging a Folder on the Desktop

PostPosted: 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?

Re: Tagging a Folder on the Desktop

PostPosted: 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.

Re: Tagging a Folder on the Desktop

PostPosted: 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.