Having A Problem With dot files

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

Moderator: Mr_Noodle

Having A Problem With dot files Sat Jun 04, 2016 4:38 pm • by scottfwalter
Hi,

I'm using Hazel 4. I have enabled dot files via defaults write com.noodlesoft.Hazel ScanInvisibles -bool YES.

I have a simple rule: If full name is ".bash_profile" then run a bash script and display a notification. If I manually run the folder it works and the log spits out:

Code: Select all
 Marker - Jun 4, 2016, 2:34:44 PM
2016-06-04 14:35:03.873 hazelworker[32490] ###main load address: 0x101b2b000
2016-06-04 14:35:03.873 hazelworker[32490] ###Noodle load address: 0x101c3c000
2016-06-04 14:35:03.874 hazelworker[32490] ###CK load address: 0x101bff000
2016-06-04 14:35:03.896 hazelworker[32490] Processing folder dotfiles (forced)
2016-06-04 14:35:05.903 hazelworker[32490] .bash_profile: Rule Update Bash Profile Gist matched.
2016-06-04 14:35:07.019 hazelworker[32490] Hazel Alert: Bash Gist Updated
2016-06-04 14:35:07.019 hazelworker[32490] [Custom Message] Hazel Alert: Bash Gist Updated
2016-06-04 14:35:09.039 hazelworker[32490] Done processing folder dotfiles


However if I make a change to the file Hazel recognizes this but does not run the rule. It spits out

Code: Select all
 Marker - Jun 4, 2016, 2:35:34 PM
2016-06-04 14:35:51.807 hazelworker[32588] ###main load address: 0x104d7a000
2016-06-04 14:35:51.807 hazelworker[32588] ###Noodle load address: 0x104e85000
2016-06-04 14:35:51.807 hazelworker[32588] ###CK load address: 0x104e4c000
2016-06-04 14:35:51.841 hazelworker[32588] Processing folder dotfiles
2016-06-04 14:35:53.853 hazelworker[32588] Done processing folder dotfiles


So it seems that when I make changes to the file Hazel isn't recognizing that a rule needs to run. Its strange it works when I force a run of the rule though.
scottfwalter
 
Posts: 49
Joined: Thu Jan 03, 2013 11:10 am

Re: Having A Problem With dot files Mon Jun 06, 2016 10:52 am • by Mr_Noodle
Can you post the rule you are using? Note that you need to specify that Hazel run its actions every time a file is modified if that is what you want.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Having A Problem With dot files Mon Jun 06, 2016 11:09 am • by scottfwalter
Oh I thought Hazel watched for events and when there's a modification it checks rules. From the logs it looks like it recognized when I made a modification it just didn't run the rule. How do I tell Hazel run its actions every time a file is modified?

Here' is my rule https://dl.dropboxusercontent.com/u/1426164/hazel.png
scottfwalter
 
Posts: 49
Joined: Thu Jan 03, 2013 11:10 am

Re: Having A Problem With dot files Mon Jun 06, 2016 11:16 am • by scottfwalter
Never mind I think I have it working now. I added to the rule "Date Modified Is After Date Last Matched". This made the magic happen!
scottfwalter
 
Posts: 49
Joined: Thu Jan 03, 2013 11:10 am


Return to Support