Applescript problem
Posted: Sat Mar 08, 2008 4:34 pm
Could someone give me a hand with this Applescript?
Background: Adium's Growl notification for background messages doesn't work the way I want. I want a single notification when there's any amount of unread messages that just goes "X has typed something!". Adium displays a new notification for each message that's unread, so you can have five or six notifications on-screen for a chat with one person if they hit enter after each sentence.
I want to write an script that Adium can run when there's unread background messages that just displays one Growl notification. So far I've written this:
tell application "GrowlHelperApp"
set the allNotificationsList to {"Background message"}
set the enabledNotificationsList to {"Background message"}
register as application "Growl Adium background message" all notifications allNotificationsList default notifications enabledNotificationsList
notify with name "Background message" title "Adium" description "You have a background message" application name "Adium"
end tell
It runs fine in Script Editor and it's registered with Growl. I've set up Adium to run that script everytime there's unread background messages but I don't get a Growl notification when it runs. Where am I going wrong?
Background: Adium's Growl notification for background messages doesn't work the way I want. I want a single notification when there's any amount of unread messages that just goes "X has typed something!". Adium displays a new notification for each message that's unread, so you can have five or six notifications on-screen for a chat with one person if they hit enter after each sentence.
I want to write an script that Adium can run when there's unread background messages that just displays one Growl notification. So far I've written this:
tell application "GrowlHelperApp"
set the allNotificationsList to {"Background message"}
set the enabledNotificationsList to {"Background message"}
register as application "Growl Adium background message" all notifications allNotificationsList default notifications enabledNotificationsList
notify with name "Background message" title "Adium" description "You have a background message" application name "Adium"
end tell
It runs fine in Script Editor and it's registered with Growl. I've set up Adium to run that script everytime there's unread background messages but I don't get a Growl notification when it runs. Where am I going wrong?