Page 1 of 1
		
			
				Matching a path component
				
Posted: 
Sat Dec 17, 2022 4:32 pmby 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
				
Posted: 
Mon Dec 19, 2022 11:23 amby 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
				
Posted: 
Fri Dec 23, 2022 7:12 pmby 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!