Applescript to mute Adium

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
Sean
Latté
Posts: 97
Joined: Sun Dec 05, 2004 2:54 am
Location: NJ

Applescript to mute Adium

Post by Sean »

Can Adium be muted via applescript?

I am trying to make an applescript to quickly mute Adium and stop Growl without having to go to the preferences of each of them.

I am new to applescript, I looked in the dictionary of Script Editor but didn't see anything to do with audio. I found out how to do the Growl part, all that's left is being able to mute Adium.
bleaus
Muffin
Posts: 30
Joined: Wed Jul 06, 2005 3:21 pm

Post by bleaus »

I found one that mutes when you're in away mode:
http://www.adiumxtras.com/index.php?a=xtras&xtra_id=581

If that's what your looking for. If not, what are you trying to mute it for?
Sean
Latté
Posts: 97
Joined: Sun Dec 05, 2004 2:54 am
Location: NJ

Post by Sean »

That script mutes the system volume though. I just want to mute Adiums volume like you can in the general preferences.

The use I had in mind was for when I want to show someone something on my Mac (an article, video, etc) but don't want a bunch of message windows/notifications/sounds popping up.

Right now I have to go to both the Growl preferences and the Adium preferences to disable them, I wanted to just have an applescript I click on to automate that process for me.


This is what I have so far - it quits growl and hides Adium, now I just need the mute part if that's possible:

Code: Select all

tell application "GrowlHelperApp" to quit

tell application "System Events" to set visible of process "Adium" to false
User avatar
memark
Frappa
Posts: 163
Joined: Sat May 28, 2005 8:44 am
Location: Sweden, Göteborg

Post by memark »

You could create an events preset without the sounds, and then try the script in this thread:
http://forums.cocoaforge.com/viewtopic. ... 5369#55369
Regards
Magnus Erik Markling
Post Reply