Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "GrowlHelperApp"
- set the allNotificationsList to {"New Mail"}
- set the enabledNotificationsList to {"New Mail"}
- register as application ¬
- "Entourage" all notifications allNotificationsList ¬
- default notifications enabledNotificationsList ¬
- icon of application "Microsoft Entourage"
- end tell
- tell application "Microsoft Entourage"
- set theMessages to the current messages
- end tell
- repeat with theMsg in theMessages
- tell application "Microsoft Entourage"
- set mysubject to get the subject of theMsg
- set mysender to the display name of sender of theMsg as string
- set mycontent to get the content of theMsg as string
- set mypriority to the priority of theMsg as string
- if mysender is "" then
- set mysender to the address of sender of theMsg as string
- end if
- end tell
- tell application "GrowlHelperApp"
- if mypriority is "high" then
- notify with name "New Mail" title mysubject description (mycontent) application name "Entourage" sticky yes
- else (*changed to mypriority for testing*)
- notify with name "New Mail" title mypriority description (mysubject) application name "Entourage" sticky no
- end if
- end tell
- end repeat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement