Skip to content

Instantly share code, notes, and snippets.

@fallroot
Created February 12, 2015 19:00
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fallroot/d41835724f6efef21f36 to your computer and use it in GitHub Desktop.
Save fallroot/d41835724f6efef21f36 to your computer and use it in GitHub Desktop.
Open OSX Notification Center with JXA
Application('System Events')
.processes['SystemUIServer']
.menuBars
.menuBarItems
.whose({
name: 'Notification Center'
})
.menuBarItems()
.reduce(function(a, b) {
return a.concat(b);
})
.find(Boolean)
.click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment