Dismiss notifications shortcut


osascript /Users/blaz/Library/Services/NotificationsDismiss.scpt


tell application "System Events"
	tell process "NotificationCenter"
		set numwins to (count windows)
		repeat with i from numwins to 1 by -1
			click button "Close" of window i
		end repeat
	end tell
end tell

At least this isn't a full screen popup

That'd be more annoying. Anyways, subscribe to my newsletter to get new posts by email! I write about AWS, Elixir, and more.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.