Feature Request: Can we get a button on notifications to trigger a macro?

This is just a feature request. I'm well aware that most feature requests are rejected for a wide variety of reasons. (E.g., impossible to implement; difficult to implement; not needed by most people; achievable by some other means; etc.) But I can still make requests!

Some (many) macOS apps allow you to click on a menu that appears in the lower right corner of its notification messages. For example, when a Reminder pops up from the Reminder app, I get an Options menu which lets me click on five options which sends a message to the app.


Is there any chance that KM could provide this feature? Yes, this would be a fairly complex feature to create, but it's certainly consistent with how macOS apps work.

In my case, I create a lot of macros that generate notifications, and it would be nice if these notifications gave the user a chance to ignore that type of notification for an hour, a day, a week, or permanently, not unlike the example in the screen shot above.

The way I imagine it working is as follows:

  1. There would also need to be a new action called "Notification With Options" that lets you pass a list of strings that the user would see as options to click on, as shown in the screen image above;
  2. When the user clicks on one of the items, the KM Engine will call a new instance of the same macro that triggered the notification;
  3. The %TriggerValue% that would be passed to the new macro is the text of the notification message;
  4. %TriggerBase% would be set to "Notification Choice Trigger", and
  5. There would need to be a new token called %TriggerNotificationOption% that tells the macro which option the user clicked on.

I think the main thing this idea has going for it is that this is how many macOS already work. But I'm not really sure how many people would want this feature. I use this feature all the time in macOS, such as getting a notification to immediately delete an incoming email, or to cancel a particular reminder. I think I recall The Architect recently saying he wanted to overhaul the notification system, and this is one possible direction that it could go.

Let the criticisms roll in.


Unfortunately, no, because Apple only allow end users to decide what format Notifications are supported, and only allow applications one option.

Unless they are Apple apps, of course, then they can do whatever they want.

There are a few apps that “hack” a solution to this by actually having multiple applications with different notification settings, but I don't have any plans to do that.

1 Like

I've not looked into this, but Actionable Notifications are on iOS, are they not available on macOS? If not, surely it's only a matter of time.

Many of the required bits are already there.

It would be nice (down the road) to have support for actionable notifications. Home Assistant uses them and they're very convenient.

EDIT(2): Just tested and this does work on macOS. Here's a link to the docs about how they work (to give you an idea about their implementation).

Noted. Thanks. So this falls under "impossible to implement" as I first mentioned.