Page 1 of 1
		
			
				Run Action if ALL files in a directory pass a rule
				
Posted: 
Wed May 20, 2015 9:43 pm 
				by scottfwalter
				I have a download script that backs up my website and puts the tar info a directory such as "~/backups".   Is there a rule that I can setup so that if all the files in the directory are older than 24 hours then perform an action?
Basically I want Hazel to run an action if for some reason the backup directory does not have a file that has been modified in the last 24 hours.
Thanks in advance, Scott
			 
			
		
			
				Re: Run Action if ALL files in a directory pass a rule
				
Posted: 
Thu May 21, 2015 11:32 am 
				by Mr_Noodle
				You might want to set it up instead where you monitor one folder up, and then setup the rule to match the folder containing the files. If you hold down option while clicking the + button to create a new condition. That creates a nested condition where you can set up conditions based on the files within the folder.
			 
			
		
			
				Re: Run Action if ALL files in a directory pass a rule
				
Posted: 
Thu May 21, 2015 4:21 pm 
				by scottfwalter
				Thanks that sounds like it should work!
			 
			
		
			
				Re: Run Action if ALL files in a directory pass a rule
				
Posted: 
Thu Jul 30, 2015 11:15 am 
				by ecormany
				should also be doable with a single set of conditions…
if all the following conditions are met
Date Added is among the 1 most recent
Date Added is not in the last 1 day