Page 1 of 1

Adium fails to run valid applescript

Posted: Sun Mar 09, 2008 12:23 pm
by ranathari
I originally posted this thread in the Growl forum until I found it it seems to be a fault with Adium itself.

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. Alternatively, you can have an enormous notification spanning the entire screen height if someone's typing an essay into the chat window.

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.

I added:

display dialog "Is this shit working?"

to the start of the script, which displays the dialog box when I run the script from Script Editor but not when Adium should be running the script. That indicates that Adium isn't invoking the script when there's an unread background message.

To stop the inevitable "have you set up Adium properly?" question:

Image

So, any help?