Skip to content

Instantly share code, notes, and snippets.

@seekshreyas
Forked from deviantintegral/Growl Pause and Resume.scpt
Last active August 29, 2015 14:05
Show Gist options
  • Save seekshreyas/55324750e547750702d6 to your computer and use it in GitHub Desktop.
Save seekshreyas/55324750e547750702d6 to your computer and use it in GitHub Desktop.
AppleScript to pause Growl
(**
* Pause and resume Growl. Use in a launcher like Quicksilver or Alfred to
* pause and resume Growl when the menu bar icon is disabled.
*
* Author: Andrew Berry, deviantintegral@gmail.com
*)
tell application "Growl"
register as application "Growl pause/resume" all notifications {"Growl paused", "Growl resumed"} default notifications {"Growl paused", "Growl resumed"} icon of application "Growl"
if is paused then
resume
notify with name "Growl resumed" title "Growl resumed" description "Growl notifications resumed" application name "Growl pause/resume"
else
notify with name "Growl paused" title "Growl paused" description "Growl notifications paused" application name "Growl pause/resume"
pause
end if
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment