Page 1 of 1

Can't reliably monitor Notifications Database

PostPosted: Sat Oct 06, 2018 8:15 am
by Gabeloooooo
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?

Re: Can't reliably monitor Notifications Database

PostPosted: Mon Oct 08, 2018 11:17 am
by Mr_Noodle
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.