scripting Alerts
-
manifoldSky
- Harmless
- Posts: 3
- Joined: Wed May 26, 2010 11:22 am
scripting Alerts
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
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.
-
manifoldSky
- Harmless
- Posts: 3
- Joined: Wed May 26, 2010 11:22 am
Re: scripting Alerts
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!
Thanks for that idea!
Re: scripting Alerts
This works for me:
Please see:
http://trac.adium.im/wiki/AppleScript_Support_1.2
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"
http://trac.adium.im/wiki/AppleScript_Support_1.2
-
manifoldSky
- Harmless
- Posts: 3
- Joined: Wed May 26, 2010 11:22 am
Re: scripting Alerts
I'll try that out. Thanks a lot!