Created
December 30, 2011 13:35
-
-
Save dlinsin/1539886 to your computer and use it in GitHub Desktop.
iChat Growl AppleScript
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 "Growl" | |
set the allNotificationsList to ¬ | |
{"iChat Message Notification"} | |
set the enabledNotificationsList to ¬ | |
{"iChat Message Notification"} | |
register as application ¬ | |
"iChat Message Notification AppleScript" all notifications allNotificationsList ¬ | |
default notifications enabledNotificationsList ¬ | |
icon of application "iChat" | |
end tell | |
using terms from application "iChat" | |
on received remote screen sharing invitation theMessage from theBuddy for theChat | |
tell application "Growl" | |
notify with name ¬ | |
"iChat Message Notification" title ¬ | |
(get name of theBuddy) description ¬ | |
theMessage application name "iChat Message Notification AppleScript" | |
end tell | |
end received remote screen sharing invitation | |
on addressed chat room message received theMessage from theBuddy for theChat | |
tell application "Growl" | |
notify with name ¬ | |
"iChat Message Notification" title ¬ | |
(get name of theBuddy) description ¬ | |
theMessage application name "iChat Message Notification AppleScript" | |
end tell | |
end addressed chat room message received | |
on message received theMessage from theBuddy for theChat | |
tell application "Growl" | |
notify with name ¬ | |
"iChat Message Notification" title ¬ | |
(get name of theBuddy) description ¬ | |
theMessage application name "iChat Message Notification AppleScript" | |
end tell | |
end message received | |
on chat room message received theMessage from theBuddy for theChat | |
tell application "Growl" | |
notify with name ¬ | |
"iChat Message Notification" title ¬ | |
(get name of theBuddy) description ¬ | |
theMessage application name "iChat Message Notification AppleScript" | |
end tell | |
end chat room message received | |
end using terms from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment