Changes in sub folders not triggering rules

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Changes in sub folders not triggering rules Wed Jul 03, 2013 10:30 am • by nicdjb
I have several rules which manage my download folder including a rule to process subfolders. Rules seem to be triggered on file activity within a monitored folder, but my subfolders rule is basically:
Kind is Folder
Date last modified is not in the last 5 mins

...and rules are not polling, they're waiting for some sort of file activity so this rule is executed once and doesn't check (for example) 5 mins later but only when I either browse the folder or open Hazel.

Spotlight was disabled, but I have re-enabled it and rebooted my mac.

Any suggestions?
Thanks
nicdjb
 
Posts: 5
Joined: Tue Mar 06, 2012 6:52 am

Why did you add that condition? Did you check the modified dates on the folders? Also, keep in mind, it's a chain so if a folder above it wasn't modified, Hazel won't get to it.

It might be better to add that condition to rules being applied to the files themselves, not the folder to affect its traversal through the folder tree.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks for the reply.

I had the condition to prevent rules from actioning the folder contents whilst another process is running. Thinking about it, I guess I could move the condition to the file level check so only run a rule on the file if it's not changed in the last 5 mins. Doesn't quite explain why it was working and then stopped but hey if it fixes the issue!

Just to check, the rule in question is an unrar rule, which unpacks a file within a subfolder once the download has completed. If I move the condition to the unrar rule will it only process files if there is a change within the subfolder or will it check to see if files haven't been modified in the last 5 mins?

I may run some tests and see if I really need to wait!

Edit:
Remembered why I had the condition on the folder, the subfolder has a multi-part rar file which has the format xxxx.part01.rar, xxxx.part02.rar, etc. I need to unrar only when all files have been downloaded, the easiest way to do this was to monitor the modified date of the folder. This was working prior to the update, should I install an older version and test?

Thanks
nicdjb
 
Posts: 5
Joined: Tue Mar 06, 2012 6:52 am

Re: Changes in sub folders not triggering rules Thu Jul 04, 2013 11:20 am • by nicdjb
Well, not fixed but 'worked around' the issue by changing my download manager to an app that downloads to a temp folder and then moves completed downloads to the 'Download' folder.

Will monitor and see what happens.
Thanks
nicdjb
 
Posts: 5
Joined: Tue Mar 06, 2012 6:52 am


Return to Support

cron