Page 1 of 1

Matching a path component

PostPosted: Sat Dec 17, 2022 4:32 pm
by hexadecagram
Is it possible to create a rule with an attribute that matches a path component? For example, if I have a file whose full pathname is /Users/hexadecagram/Documents/myfolder/myfile.txt, can I match "hexadecagram" somehow?

Re: Matching a path component

PostPosted: Mon Dec 19, 2022 11:23 am
by Mr_Noodle
In the attribute pop-up, select "Other". If "File pathname" is there, you should be able to use that with "matches".

Re: Matching a path component

PostPosted: Fri Dec 23, 2022 7:12 pm
by hexadecagram
Wow! Lots of stuff in there! I ended up writing a shell script to do the job, which is also a nice feature. Good stuff!