scripting Alerts

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
manifoldSky
Harmless
Posts: 3
Joined: Wed May 26, 2010 11:22 am

scripting Alerts

Post 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.
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: scripting Alerts

Post 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.
manifoldSky
Harmless
Posts: 3
Joined: Wed May 26, 2010 11:22 am

Re: scripting Alerts

Post 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!
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: scripting Alerts

Post 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
manifoldSky
Harmless
Posts: 3
Joined: Wed May 26, 2010 11:22 am

Re: scripting Alerts

Post by manifoldSky »

I'll try that out. Thanks a lot!
Post Reply