Page 1 of 1

Matching on locked status in Finder

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