Running Hazel on Login

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

Moderator: Mr_Noodle

Running Hazel on Login Mon Oct 07, 2013 10:31 am • by NorthboundTrain
I thought Hazel would start running when I logged in, but I noticed that it wasn't running this morning, and I had just restarted a few days ago, so it may not have been running for days. I poked around the options screen and couldn't find anything to have it run automatically, so I was now wondering if it does so at all. How do I make it run every time I log in? (I thought I remember reading that it can't run simply at startup, it has to run as a user, but if that's incorrect, then running at startup would be even more preferable).

If it does run at login automatically, how would I figure out why it wasn't running today?

Thanks!
NorthboundTrain
 
Posts: 4
Joined: Mon Oct 07, 2013 10:25 am

Re: Running Hazel on Login Mon Oct 07, 2013 12:26 pm • by Mr_Noodle
In System Preferences, go to "Users & Groups" and go into your account's Login Items. Check if HazelHelper is there. Report back on what you find.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Running Hazel on Login Mon Oct 07, 2013 12:45 pm • by NorthboundTrain
It is there, unchecked.
NorthboundTrain
 
Posts: 4
Joined: Mon Oct 07, 2013 10:25 am

Re: Running Hazel on Login Mon Oct 07, 2013 12:49 pm • by Mr_Noodle
Then it might be crashing on startup. Go to Hazel's Info section and click "View Log". See if there are any messages from HazelHelper around the time you last logged in.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Running Hazel on Login Mon Oct 07, 2013 2:35 pm • by NorthboundTrain
It ran for many minutes on the last startup, with many perm issues like the following (I'll have to check the FAQ to see why this is happening). Then it looks like it crashes:

Code: Select all
2013-09-30 07:42:22.814 hazelworker[263] File ♡ Sudoku Daily.app has been sitting in the trash for too long. Purging.
2013-09-30 07:42:22.814 hazelworker[263] Removing ♡ Sudoku Daily.app.
2013-09-30 07:42:22.828 hazelworker[263] Could not remove ♡ Sudoku Daily.app: Error Domain=NSCocoaErrorDomain Code=513 "“♡ Sudoku Daily.app” couldn’t be removed because you don’t have permission to access it." UserInfo=0x7fbf08470830 {NSFilePath=/Users/joe/.Trash/♡ Sudoku Daily.app, NSUserStringVariant=(
    Remove
), NSUnderlyingError=0x7fbf0846f4f0 "The operation couldn’t be completed. Permission denied"}
2013-09-30 07:42:22.829 hazelworker[263] [Error] Could not remove file: File ♡ Sudoku Daily.app could not be removed from the Trash.
2013-09-30 07:42:22.836 hazelworker[263] Warning: predicted fire time is in the past: 2013-08-05 15:02:26 +0000
2013-09-30 07:42:30.092 HazelHelper[252] Received request to terminate
2013-09-30 07:42:30.093 HazelHelper[252] Deregistering...
2013-09-30 07:42:30.093 HazelHelper[252] Done
2013-09-30 07:42:30.843 hazelworker[263] Caught exception while getting events from scheduler: [NSMachPort sendBeforeDate:] destination port invalid
2013-09-30 07:42:30.843 hazelworker[263] Could not get file events from scheduler.
2013-09-30 07:42:30.844 hazelworker[263] Received exception while processing directory /Users/joe/.Trash: [NSMachPort sendBeforeDate:] destination port invalid
2013-09-30 07:42:30.844 hazelworker[263] (
   0   CoreFoundation                      0x00007fff9796cb06 __exceptionPreprocess + 198
   1   libobjc.A.dylib                     0x00007fff946bb3f0 objc_exception_throw + 43
   2   CoreFoundation                      0x00007fff9796c8dc +[NSException raise:format:] + 204
   3   Foundation                          0x00007fff91d0f497 +[NSMachPort sendBeforeTime:streamData:components:to:from:msgid:reserved:] + 1474
   4   Foundation                          0x00007fff91d0eec3 -[NSMachPort sendBeforeDate:msgid:components:from:reserved:] + 107
   5   Foundation                          0x00007fff91d0ecca -[NSConnection _sendBeforeTime:coder:doAuthenticationCheck:] + 375
   6   Foundation                          0x00007fff91d0bdcd -[NSConnection sendInvocation:internal:] + 1309
   7   CoreFoundation                      0x00007fff9795b197 ___forwarding___ + 775
   8   CoreFoundation                      0x00007fff9795ae18 _CF_forwarding_prep_0 + 232
   9   hazelworker                         0x000000010cad514d start + 14909
   10  hazelworker                         0x000000010cad6a6c start + 21340
   11  hazelworker                         0x000000010cad1744 start + 52
)
2013-09-30 07:42:30.851 hazelworker[263] [METRICS] Caught exception sending metrics to scheduler: [NSMachPort sendBeforeDate:] destination port invalid
2013-09-30 07:42:30.851 hazelworker[263] Done processing folder Trash


I'm seeing the same errors today (over and over) but so far it hasn't crashed.

Thanks!
NorthboundTrain
 
Posts: 4
Joined: Mon Oct 07, 2013 10:25 am

Re: Running Hazel on Login Mon Oct 07, 2013 3:14 pm • by Mr_Noodle
Try rebooting again as it seems something is out of sync. Did you only see one copy of HazelHelper in the list of login items? Launch Activity Monitor and make sure one, and only one, copy of it is running.

Also, you might want to post what version of OS X and Hazel you are running.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Running Hazel on Login Mon Oct 07, 2013 8:31 pm • by NorthboundTrain
Yes, only one copy is running.

OSX: 10.8.5
Hazel: 3.1.5

Thanks. If it happens again I'll go look at the log and post it (unless you know of something now to try).

Thanks!
NorthboundTrain
 
Posts: 4
Joined: Mon Oct 07, 2013 10:25 am


Return to Support