Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Script to Pause and Resume Growl with a Hidden Menu Icon Apps
Growl includes a feature to pause and resume notifications, which is very useful when giving presentations or screen sharing. Unfortunately, the UI only exposes this feature via the menu icon. With this script you can hide the icon and control notifications via a launcher such as QuickSilver or Alfred.
 * 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
If you wish to make any improvements to this, feel free to fork the code over at Gist.
    •    
  • Currently 2.00 / 5
  You rated: 2 / 5 (5 votes cast)
 
[2,851 views]  

Script to Pause and Resume Growl with a Hidden Menu Icon | 4 comments | Create New Account
Click here to return to the 'Script to Pause and Resume Growl with a Hidden Menu Icon' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Script to Pause and Resume Growl with a Hidden Menu Icon
Authored by: gmachen on Aug 23, '12 11:50:54AM
if is paused then
"Syntax Error Expected expression but found 'is'."

[ Reply to This | # ]
Script to Pause and Resume Growl with a Hidden Menu Icon
Authored by: tselliott on Aug 23, '12 02:27:26PM

I'm having the same issue. I'm guessing you're running a pre-1.3 version of Growl, like me. AppleScript support for "is paused" was only added into version 1.3, according to http://growl.info/documentation/version_history.php.

Anyhow, I opted not to take the plunge to the Mac App store version of Growl, so note that this hint only works with Growl >= version 1.3.



[ Reply to This | # ]
Script to Pause and Resume Growl with a Hidden Menu Icon
Authored by: cybergoober on Aug 24, '12 06:47:27PM

It is possibly worth noting here that Growl 1.3 source is available and can be freely acquired, then compiled with a little Xcode know-how.

http://growl.info/documentation/developer/growl-source-install.php



[ Reply to This | # ]
Script to Pause and Resume Growl with a Hidden Menu Icon
Authored by: xplora on Aug 23, '12 04:52:27PM

Kewl, this opens up the idea of setting a startup script to pause growl (to deal with the flood of startup notifications) and resume it a few minutes later.



[ Reply to This | # ]