bpetrynski / alfred-notification-dismisser

Alfred Workflow that helps you dismiss notifications on macOS 11 (Big Sur) and newer
GNU General Public License v3.0
37 stars 1 forks source link

Feature Request: make it faster #2

Open gcortes opened 3 years ago

gcortes commented 3 years ago

When I first ran it, I thought it didn't work. It takes two or three seconds for the notification to disappear. It's no big deal now that I'm used to it, but it would be nice if it were faster. Of course, the speed may not have anything to do with your code, but the functions you call.

bpetrynski commented 1 year ago

The biggest delay comes from the system's processing of UI automation commands, so there's a limit to how fast this can be made with AppleScript. Currently, macOS doesn't provide a public API or command-line utility that directly allows for the dismissal of notifications. So we need to stick to this slow method, unfortunately.