Matching on locked status in Finder

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

Matching on locked status in Finder Sun Jun 11, 2023 7:29 am • by Uncle Walrus
This is a way to "un-match" files that are locked in the Finder. If you want Hazel to skip files that are locked, you can setup a Passes shell script rule that fails on locked files:

Code: Select all
ls -lO "$1" | grep -q "uchg" && exit 1 || exit 0


Possibly there's a built-in way of doing this; but this what I've come up with. I wrote up the explanation of how this works: https://www.ojisanseiuchi.com/2023/06/11/telling-hazel-not-to-match-locked-files/
Uncle Walrus
 
Posts: 2
Joined: Tue May 09, 2023 8:19 am

Return to Tips & Tricks - DO NOT POST QUESTIONS