Created
March 14, 2012 14:19
-
-
Save ericduran/2036783 to your computer and use it in GitHub Desktop.
Applescript for Dismissing all Growl notifications.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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