Created
February 12, 2015 19:00
-
-
Save fallroot/d41835724f6efef21f36 to your computer and use it in GitHub Desktop.
Open OSX Notification Center with JXA
This file contains hidden or 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
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