Sometimes when you have left the screen on, and you walked away for a short while, like:
- Using the washroom
- Getting a slice of cake / snacks from a friendly colleague
- Opening the door for someone in need
Then you may miss a notification from some Apps.
While the notification showing duration should be possible to be modified, that is not too reliable.
Instead, I'll use "alert" for notifications to ensure they stays until I dismiss them.
But then I'll have to use my mouse to dismiss them --
-- Not any more
Call the script by osascript ~/cn
and see the "Magic happens"
Script shamelessly copied from [https://apple.stackexchange.com/questions/300317/applescript-how-to-close-notification-alerts-from-a-specific-application]