Messages applescript not working under Mountain Lion?
I believe that the Applescripts need to be called in Preferences > Alerts. Select an event and then select "Run an Applescript Script:"

See if that helps.