Skip to content

Instantly share code, notes, and snippets.

@cfraizer
Created December 2, 2013 14:25
Show Gist options
  • Save cfraizer/7750219 to your computer and use it in GitHub Desktop.
Save cfraizer/7750219 to your computer and use it in GitHub Desktop.
#!/usr/bin/osascript
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment