Hazel doesn't apply some rules anymore

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

Moderator: Mr_Noodle

Hazel doesn't apply some rules anymore Mon Jun 24, 2013 7:33 am • by marvin
Hi there,

since the update (I'm running Version 3.1.1, Build 996), Hazel doesn't seem to be applying some of the rules anymore. It still checks the folder, but doesn't apply the rules until I force Hazel to run it. This is quite strange. The log file doesn't show any odd activity: When the rule is not forced, it justs processes the folder and skips to the next, without running a rule, when I force it, it runs the rule. This is really strange. The folder is not a subfolder, but the very folder I asked Hazel to watch.

The specific rule doesn't matter, since various (syncing or running a shell script when a specific keyword is found or applying a tag when a certain file extension matches) should apply (and do, according to the preview).
Please note: The file the rule should apply (and does, according to the preview) to is "test .txt", not "xPHILx Filename". But the log shows that Hazel doesn't seem to look at it as long as I'm not forcing it?

So I did what was asked in the troubleshooting thread
Preview mode: It shows the file the rule should apply and the "rule matched" shows the actual rule.
Double-checking rules: The rules work very well, there is no problem when the rule is forced.
Checking the logs:
When ran automatically:
2013-06-24 13:27:43.846 hazelworker[3842] Processing folder Notizen
"/Users/xxx/Documents/Notizen"
2013-06-24 13:27:45.848 hazelworker[3842] DEBUG: About to process directory /Users/xxx/Documents/Notizen
path = "<ComNoodlesoft_NoodlePathSet: 0x7f9c38c38930> - (\n \"/Users/xxx/Documents/Notizen\"\n)";
2013-06-24 13:27:47.815 hazelworker[3842] DEBUG: xPhilX Filename: Did not match any rules.
2013-06-24 13:27:52.824 hazelworker[3842] DEBUG: Writing out DB file: /Users/xxx/Documents/Notizen
2013-06-24 13:27:52.826 hazelworker[3842] DEBUG: Directory /Users/xxx/Documents/Notizen processed in 6.978286 seconds
2013-06-24 13:27:52.829 hazelworker[3842] Done processing folder Notizen


When forced:
2013-06-24 13:29:50.703 hazelworker[3936] Processing folder Notizen (forced)
"/Users/xxx/Documents/Notizen"
(...)
"/Users/xxx/Documents/Notizen"
2013-06-24 13:30:04.596 hazelworker[4032] DEBUG: About to process directory /Users/xxx/Documents/Notizen
path = "<ComNoodlesoft_NoodlePathSet: 0x7fb11b217df0> - (\n \"/Users/xxx/Documents/Notizen\"\n)";
})(sync:/Volumes/box/Notizen-ARCHIV,(null))}
})(sync:/Volumes/box/Notizen-ARCHIV,{
/Users/xxx/Documents/Notizen/test .txt
2013-06-24 13:30:07.126 hazelworker[4032] DEBUG: Shellscript /Users/xxx/bin/autotag.sh executed successfully with file /Users/xxx/Documents/Notizen/test .txt
(...)
2013-06-24 13:30:08.275 hazelworker[4032] [File Event] File/folder synced: test .txt synced to /Volumes/box/Notizen-ARCHIV/test .txt.
2013-06-24 13:30:09.602 hazelworker[4032] DEBUG: xPhilX Filename.txt: Did not match any rules.
2013-06-24 13:30:14.623 hazelworker[4032] DEBUG: Writing out DB file: /Users/xxx/Documents/Notizen
2013-06-24 13:30:14.625 hazelworker[4032] DEBUG: Directory /Users/xxx/Documents/Notizen processed in 10.028566 seconds
2013-06-24 13:30:14.628 hazelworker[4032] Done processing folder Notizen


MDLS: doesn't apply
marvin
 
Posts: 5
Joined: Mon Jun 17, 2013 2:40 pm

Re: Hazel doesn't apply some rules anymore Mon Jun 24, 2013 1:24 pm • by Mr_Noodle
What are the conditions on the rule? I'm guessing the file was already processed, in which case, Hazel will not keep reprocessing the file unless you force it (which is why it always runs then).
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel doesn't apply some rules anymore Mon Jun 24, 2013 4:31 pm • by marvin
Hi,

just to check I understood you correctly: Hazel applies a rule if and if only the file hasn't been processed before, but this is different for every rule? A file might have been processed by one rule so it won't process it once more, however another rule might?

If that's the case: the file might have been processed, since the rule looks for a certain key word, which wasn't present at first. Is there any way to get Hazel to reprocess a file? I would suggest to add the condition that the file has been changed since the last time it has been matched (i.e.: "Date last modified" IS AFTER "Date last matched"). Would that mean the file would be processed once more?
marvin
 
Posts: 5
Joined: Mon Jun 17, 2013 2:40 pm

Re: Hazel doesn't apply some rules anymore Tue Jun 25, 2013 12:54 pm • by Mr_Noodle
If the file matches the same rule it matched before, then it won't re-execute the actions. If conditions change so that it matches a different rule (or no rule, and then back again), then the actions will be run.

Can you go into more detail about the keywords? Are you using Spotlight's keyword attribute? What kind of file is it and how it the keyword added?
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Hazel doesn't apply some rules anymore Tue Jun 25, 2013 5:09 pm • by marvin
Hi,

first of all thank for your very helpful answers. Glad that I bought that application! I don't really know why, but I tried changing my rule setup a bit and now it seems to be working. It doesn't seem to be a problem with the application, sorry for troubling you.
marvin
 
Posts: 5
Joined: Mon Jun 17, 2013 2:40 pm


Return to Support