Can't reliably monitor Notifications Database

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

Moderator: Mr_Noodle

Trying to monitor changes to:
/private/var/folders/***secret***/com.apple.notificationcenter/db2/

Basically, I want to trigger a script everytime my mac gets a notification in notification center. It works about 20% of the time.

I noticed that if I try to watch that folder with launchd WatchPaths, it also almost never works.

Any ideas?
Gabeloooooo
 
Posts: 1
Joined: Sat Oct 06, 2018 8:12 am

Not sure if that's a reliable way in general. That said, I don't know of any official hooks/API for this. If it's not reliable outside of Hazel, not sure if there's much Hazel can do about it.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support