Last active
December 21, 2015 21:39
-
-
Save pmbuko/6369953 to your computer and use it in GitHub Desktop.
test growl applescript to debug adpassmon
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
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