Page 1 of 1

Hazel not recognizing "Kind" rules

PostPosted: Mon Mar 09, 2009 1:12 pm
by gcoghill
recently Hazel has stopped recognizing rules based on the "Kind" criteria (PDF, image, etc). I tested this and added a rule to look for extension (pdf, jpg, etc.), and it works fine. But if I only use "kind", it does not process the files.

Re: Hazel not recognizing "Kind" rules

PostPosted: Mon Mar 09, 2009 3:11 pm
by sjk
Have you checked the logfile for errors? Maybe try enabling Debug Mode to get more details?

Re: Hazel not recognizing "Kind" rules

PostPosted: Mon Mar 09, 2009 3:27 pm
by Mr_Noodle
Beat me to the punch :D

Also, does it appear to work in preview mode?

One possibility is that Spotlight is not indexing those files (the Kind is derived from the Spotlight index). You may want to double-check that as well.

Re: Hazel not recognizing "Kind" rules

PostPosted: Mon Mar 09, 2009 4:06 pm
by gcoghill
sjk wrote:Have you checked the logfile for errors? Maybe try enabling Debug Mode to get more details?


The logfile doesn't show any errors related to this as far as I can tell.

Re: Hazel not recognizing "Kind" rules

PostPosted: Mon Mar 09, 2009 4:07 pm
by gcoghill
Mr_Noodle wrote:Beat me to the punch :D

Also, does it appear to work in preview mode?

One possibility is that Spotlight is not indexing those files (the Kind is derived from the Spotlight index). You may want to double-check that as well.


If I do a "preview rule matches" it does not recognize them either. Spotlight is set to index everything (all items are checked in Spotlight's prefs). Is there somewhere else I can check for this?

Re: Hazel not recognizing "Kind" rules

PostPosted: Mon Mar 09, 2009 5:08 pm
by Mr_Noodle
If you are ok with using the commandline, you can use the 'mdls' command to dump the Spotlight data for a file. If there is no Spotlight data, all the dumped fields will start with "kMDItemFS".

You can also use the 'mdutil' command to check if indexing is turned on for that drive.

There's also the privacy tab in Spotlight's preferences. Make sure you double-check that.

Even after all that, sometimes things just get a little wonky and you have to make it re-index. You can use the 'mdutil' command or try following this support article: http://support.apple.com/kb/HT2409?viewlocale=en_US

Post here if you need more help with any of the above.

Re: Hazel not recognizing "Kind" rules

PostPosted: Mon Mar 09, 2009 5:09 pm
by sjk
Glad to sneak in a forum post early for a change since I'm too often arriving late for the party. :)

Re: Hazel not recognizing "Kind" rules

PostPosted: Mon Mar 09, 2009 7:17 pm
by gcoghill
Thanks for the info, I will run through those steps when I don't have a deadline :)

I might try restarting the Mac first to see if that clears anything out.

Thanks again!

Re: Hazel not recognizing "Kind" rules

PostPosted: Tue Mar 10, 2009 2:02 am
by gcoghill
Quickly: problem solved by a restart of the Mac. Thanks again for the quick followup and detailed help from all.

Sidenote: I noticed Apple Mail wasn't searching properly, and immediately your comment about Spotlight came to mind. The reboot solved both issues.

Re: Hazel not recognizing "Kind" rules

PostPosted: Tue Mar 10, 2009 4:56 pm
by sjk
Glad it's resolved and hopefully it'll stay that way.