Board index
Members
FAQ
Register
Login
Board index
‹
Hazel
‹
Open Discussion
Print view
Matching a path component
Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.
Moderators:
Mr_Noodle
,
Moderators
Post a reply
3 posts • Page
1
of
1
Matching a path component
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?
hexadecagram
Posts:
5
Joined:
Sun May 30, 2021 8:49 pm
Reply with quote
Re: Matching a path component
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".
Mr_Noodle
Site Admin
Posts:
11865
Joined:
Sun Sep 03, 2006 1:30 am
Location:
New York City
Reply with quote
Re: Matching a path component
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!
hexadecagram
Posts:
5
Joined:
Sun May 30, 2021 8:49 pm
Reply with quote
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post a reply
3 posts • Page
1
of
1
Return to Open Discussion
Jump to:
Select a forum
------------------
General
Forum/Site Discussion
Hazel
Support
Open Discussion
Tips & Tricks - DO NOT POST QUESTIONS
Beta Discussion