Skip to content

Instantly share code, notes, and snippets.

@deviantintegral
Created August 4, 2012 19:35
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save deviantintegral/3259508 to your computer and use it in GitHub Desktop.
Pause and Resume Growl Notifications
(**
* 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
@seekshreyas
Copy link

Thanks @deviantintegra. Worked like a charm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment