Created
November 26, 2019 17:34
-
-
Save ksloan/3bd67f5cbeb73ad4beb26164f95a6c8a to your computer and use it in GitHub Desktop.
Dismiss Notifications Automator Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function run(input, parameters) { | |
var app = Application('System Events'); | |
app.includeStandardAdditions = true; | |
app.processes.byName('NotificationCenter').windows.buttons[0].click(); | |
return input; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment