Skip to content

Instantly share code, notes, and snippets.

@pmbuko
Last active December 21, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmbuko/6369953 to your computer and use it in GitHub Desktop.
Save pmbuko/6369953 to your computer and use it in GitHub Desktop.
test growl applescript to debug adpassmon
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"
-- Make a list of all notification types that this script will ever send:
set the allNotificationsList to {"Test Notification"}
-- Make a list of the enabled notifications. Others can be enabled in Growl prefs.
set the enabledNotificationsList to {"Test Notification"}
-- Register with Growl
register as application "Test AppleScript" ¬
all notifications allNotificationsList ¬
default notifications enabledNotificationsList ¬
icon of application "Script Editor"
end tell
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment