Stale Apps rule help

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

Moderator: Mr_Noodle

Stale Apps rule help Mon May 09, 2011 1:07 pm • by sixty4k
I have two rules:

Folder: Applications
Rule: Stale Apps:
if all:
Kind is Application
Date Last Opened is not This Week
Set color label red.

Rule: Unstale Apps
if Date Last Opened is after Date Last Matched
set color label none.

What I wanted to do was give myself a visual flag for the apps I'm not using. But it's marking almost everything in Applications red, even if I have opened it this week.
The items it doesn't mark seem to be because Hazel is unable to access them (permission issues generally)

thanks!
m.
sixty4k
 
Posts: 2
Joined: Mon May 09, 2011 12:53 pm

Re: Stale Apps rule help Mon May 09, 2011 1:33 pm • by Mr_Noodle
Note that "this week" means this calendar week. So, right now, it would be from May 8th-14th.

Select the apps in question in Finder and do "Get Info" and see if the date last opened actually agrees with what you think it should be.
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Stale Apps rule help Mon May 09, 2011 1:46 pm • by sixty4k
Ah that makes sense, have changed both rules:

Stale:
Date Last Opened is not in the last 1 week

Unstale:
Date Last Opened is in the last 1 week

Will watch for a bit and see what things look like, I think it's still marking some things it shouldn't, but I'll confirm that and see if I can't pinpoint why.

Thanks,
m.
sixty4k
 
Posts: 2
Joined: Mon May 09, 2011 12:53 pm

Re: Stale Apps rule help Sat Dec 19, 2015 10:36 am • by GeekNeck
I am trying to do something similar, but I'm not sure how to get around the permissions. This is what I see in the logs:

Code: Select all
2015-12-19 09:34:10.629 hazelworker[32247] zPerf.app: Rule Stale Applications matched.
2015-12-19 09:34:10.629 hazelworker[32247] DEBUG: New rule signature. Executing actions.
Old signatures: (
)
New Signature:{typeObject isType: "com.apple.application" AND (NOT dateAccessed hazelIsInTheLast: 2 Months)}:{(addtag:(
    staleapp
),{
})}
2015-12-19 09:34:10.630 hazelworker[32247] Could not set tags for URL file:///Applications/zPerf.app/: Error Domain=NSOSStatusErrorDomain Code=-5000 "afpAccessDenied: Insufficient access privileges for operation "
2015-12-19 09:34:10.630 hazelworker[32247] Caught exception in rule evaluation of file zPerf.app: Could not set tags for /Applications/zPerf.app
2015-12-19 09:34:10.630 hazelworker[32247] DEBUG: Tapping error retry sequence
2015-12-19 09:34:10.630 hazelworker[32247] ###main load address: 0x107b06000
2015-12-19 09:34:10.630 hazelworker[32247] ###Noodle load address: 0x107c1b000
2015-12-19 09:34:10.630 hazelworker[32247] ###CK load address: 0x107be0000
2015-12-19 09:34:10.630 hazelworker[32247] (
   0   CoreFoundation                      0x00007fff8c2b6ae2 __exceptionPreprocess + 178
   1   libobjc.A.dylib                     0x00007fff9630773c objc_exception_throw + 48
   2   hazelworker                         0x0000000107b333a2 hazelworker + 185250
   3   hazelworker                         0x0000000107b2e989 hazelworker + 166281
   4   hazelworker                         0x0000000107b3fa83 hazelworker + 236163
   5   hazelworker                         0x0000000107b0cee0 hazelworker + 28384
   6   hazelworker                         0x0000000107b0ef12 hazelworker + 36626
   7   hazelworker                         0x0000000107b10c5c hazelworker + 44124
   8   libdyld.dylib                       0x00007fff96fea5ad start + 1
   9   ???                                 0x0000000000000003 0x0 + 3
)
GeekNeck
 
Posts: 27
Joined: Sat Aug 11, 2012 7:26 am

Re: Stale Apps rule help Mon Dec 21, 2015 12:32 pm • by Mr_Noodle
You will have to alter the permissions on the apps for Hazel to alter them (including setting tags). No real way of getting around that.
Mr_Noodle
Site Admin
 
Posts: 11951
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support