Page 1 of 1
scripting Alerts
Posted: Wed May 26, 2010 11:27 am
by manifoldSky
Is it possible to script Adium such that I can change from default notifications to visual notifications? I am writing an Applescript that sets up my system for displaying A/V, and I need Adium not to interrupt playback with spurious noise while I am using the system for this, but I often forget to set it in preferences. Hence the script. But as of yet, the only way I see to do it is with a macro. I would prefer something a bit more elegant, if possible.
Re: scripting Alerts
Posted: Thu Jun 10, 2010 9:13 pm
by mtimmsj
I'm not sure I follow exactly what you want, but have you thought of creating a custom status that mutes sounds, then you could script Adium to enable that status during playback.
Re: scripting Alerts
Posted: Thu Jun 10, 2010 10:03 pm
by manifoldSky
Oh, hmm, interesting idea. That would work too, I suppose. What is the syntax for switching status in Adium via Applescript?
Thanks for that idea!
Re: scripting Alerts
Posted: Mon Jun 14, 2010 8:36 pm
by mtimmsj
This works for me:
Code: Select all
tell application "Adium" to set the status of every account whose status type is not offline to the first status whose title is "Playing Music"
Please see:
http://trac.adium.im/wiki/AppleScript_Support_1.2
Re: scripting Alerts
Posted: Mon Jun 14, 2010 8:46 pm
by manifoldSky
I'll try that out. Thanks a lot!