Checker - KM notifications off?

This macro regularly checks to make sure notifications are enabled for Keyboard Maestro Engine.
I've never had any issues with the notifications so far, but this gives me some peace of mind considering how many of my macros rely on them.

Notice: I used jq, not realizing at the time that I would end up sharing this macro publicly, so that's currently a requirement.

Checker - KM notifications off?.kmmacros (16 KB)

The comment inside the macro, pasted here for search purposes

All existing macros for “checking stuff” rely on the Keyboard Maestro Engine being able to send notifications through macOS.

This macro:

  • grabs the current notification setting “flags” from that specify the state of the Engine under Notifications in System Preferences.

  • does some bitwise math to check for certain sub-states

  • triggers a Keyboard Maestro window notification if macOS notifications are off

useful links:

Notification Preferences macOS osquery · GitHub

1 Like