You can use the following keywords:
Show the current status of Growl and NotificationCenter : stat
Pause Growl and Notification Center : pause
Resume Growl and Notification Center : resume
Pause or resume Growl : growl
Pause or resume Notification Center : notificationcenter
Close all Growl notifications : close_growl
Close all NotificationCenter notifications : close_nc
Show Growl’s rollup : show
Hide Growl’s rollup : hide
Enable Growl’s incoming network : enable
Disable Growl’s incoming network : disable/
Restart Growl : restart
Just download this extension, install it and it’s ready to use.
If you don’t have Growl installed, you can just download the NotificationCenter only version of the workflow.
This extension is written in AppleScript and uses the Shell.
If you experience any troubles with this, hit me on twitter.
-support for Mac OS X 10.10 Yosemite
-you can now download this workflow in two versions (one with growl, one without)
-added support for Mac OS X 10.9 Mavericks’ new security features
-added support for Mac OS X 10.9 Mavericks
-now rewritten as an Alfred 2 workflow
-added option to close all pending NotificationCenter items
If you don’t have the Alfred Powerpack or you don’t want to use Alfred for this task, you can either extract the code from the workflow file or just ask me for the source.