clear-all-notifications
Adapted from Terry's fantastically helpful answer on superuser.com
Usage
- open
clear-all-notifications
in Script Editoropen -a 'Script Editor' ./clear-all-notifications.scpt
File > Export...
as File Format: Application- Try it out - you'll probably need to grant accessibility permissions to the new application