Dismiss notifications as they arrive?

This seems straightforward, but I am having some troubles identifying the specific triggers/actions to do the job. Here goes:

  • A notification arrives from an app "X"
  • When that happens, Keyboard Maestro should dismiss that notification/close that notification.

Is there a specific trigger, and a specific action to achieve this? I came across a third-party author's post that has a list of "Global macros" and of that list, there is one macro to dismiss notifications. I imported this list, but I am not sure how to use it.

So, I am back to square one and I am trying to setup this macro on my own. Any help would be great. Thank you!

found this macro, uses AppleScript and KM:

and another one:

additionally, you could also add a Periodic Trigger to the macro, to run a macro it every minute/second/hour/day/etc


You can control the type of Notifications in the Notifications panel of System Preferences:
Change the setting from "Alerts" to "Banners", and the notification will show briefly and then auto close.

1 Like

Thanks @JMichaelTX and @hello! Both are great ideas; I have settled for Mac's Banners setting for now.