-> Touch Bar Trigger Configuration
-> Apple Script
-> Run Apple Script (blocking)
Last active
May 22, 2020 10:47
-
-
Save yuu/0efebc3da810d657754ba0732201396f to your computer and use it in GitHub Desktop.
Dismiss the popup notification in macos notification center #touchbar #bettertouchtool
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
tell application "System Events" | |
tell process "Notification Center" | |
set theWindows to every window | |
-- repeat with i from 1 to number of items in theWindows | |
set this_item to item 1 of theWindows | |
click button 1 of this_item | |
-- end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment