Open gcortes opened 3 years 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.
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.