Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 the notification types
- -- that this script will ever send:
- set the allNotificationsList to ¬
- {"Imported", "Not Imported"}
- -- Make a list of the notifications
- -- that will be enabled by default.
- -- Those not enabled by default can be enabled later
- -- in the 'Applications' tab of the Growl preferences.
- set the enabledNotificationsList to ¬
- {"Imported", "Not Imported"}
- -- Register our script with growl.
- -- You can optionally (as here) set a default icon
- -- for this script's notifications.
- register as application ¬
- "The Hit List Mail Capture Script" all notifications allNotificationsList ¬
- default notifications enabledNotificationsList ¬
- icon of application "The Hit List"
- end tell
- end if
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement