Skip to content

Instantly share code, notes, and snippets.

@ericduran
Created March 14, 2012 14:19
Show Gist options
  • Save ericduran/2036783 to your computer and use it in GitHub Desktop.
Save ericduran/2036783 to your computer and use it in GitHub Desktop.
Applescript for Dismissing all Growl notifications.
# Dismiss all Growl notifications.
#
# If you're using this snippet with alfred and the power-pack
# make sure to remove the default text alfred puts in there
# aka "on alfred_script(q)" & "end alfred_script". You could
# just paste the script as is.
tell application "System Events"
set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0
end tell
if isRunning then
tell application id "com.Growl.GrowlHelperApp"
delay 2
close all notifications
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment