Wake up your display with Adium and Applescript
June 18th, 2008
I had a problem with Adium: After 3 minutes of inactivity, my monitor goes to sleep. With the laptops volume turned low I would not notice any incoming messages whenever I was playing a game or anything that made some level of noise.
Back when I used windows, Miranda woke up my display when it received a message. That was an option I missed from Adium. The solution to this was pretty simple though. Adium provides the possibility to execute an Applescript on events. So I wrote a litte script to wake up my display and bound that to the “Message received (initial)” event. The script? Not very impressive:
But it works! :)
(Key Code 59 is the CTRL key, so you don’t accidentally trigger anything by firing it)