Advertisement
Guest User

Init Hit List Growl.scpt

a guest
Dec 8th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "System Events"
  2.     set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0
  3. end tell
  4.  
  5. if isRunning then
  6.     tell application id "com.Growl.GrowlHelperApp"
  7.         -- Make a list of all the notification types
  8.         -- that this script will ever send:
  9.         set the allNotificationsList to ¬
  10.             {"Imported", "Not Imported"}
  11.        
  12.         -- Make a list of the notifications
  13.         -- that will be enabled by default.      
  14.         -- Those not enabled by default can be enabled later
  15.         -- in the 'Applications' tab of the Growl preferences.
  16.         set the enabledNotificationsList to ¬
  17.             {"Imported", "Not Imported"}
  18.        
  19.         -- Register our script with growl.
  20.         -- You can optionally (as here) set a default icon
  21.         -- for this script's notifications.
  22.         register as application ¬
  23.             "The Hit List Mail Capture Script" all notifications allNotificationsList ¬
  24.             default notifications enabledNotificationsList ¬
  25.             icon of application "The Hit List"
  26.     end tell
  27. end if
  28. end
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement