Applescript: Away with mute sounds?

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
Mikooster
Harmless
Posts: 4
Joined: Thu Apr 24, 2008 1:19 am

Applescript: Away with mute sounds?

Post by Mikooster »

Is there a way to select the "Mute sounds" option that you get when creating a new status, via applescript? I can't figure this out.

Code: Select all

tell application "Adium"
set the status of every account to away with message "Away"
end tell
I'd like that to work.... except with the "Mute sounds" option. Is there a way to do this? Thanks.
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: Applescript: Away with mute sounds?

Post by mtimmsj »

There doesn't appear to be a way to do this without first creating custom status via the gui and then setting the status of the account to that specific status.
Mikooster
Harmless
Posts: 4
Joined: Thu Apr 24, 2008 1:19 am

Re: Applescript: Away with mute sounds?

Post by Mikooster »

Thanks, I can do this.

One thing about this, though. When I run the following applescript:

Code: Select all

tell application "Adium"
	set the status of every account to the status "Away (muted)"
	set the status message of every account to AwayMessage
end tell
In my 3 accounts (ICQ, AIM, Google Talk), only one gets set to that away status. The other 2 accounts get set to a Custom status where the away message is correctly set, the away status is correctly set, and the sounds are correctly muted. So, in short, this applescript works but has a side effect of setting 2 of my accounts to a Custom status and one of my accounts to the correct status. It's just an annoyance, though. Any idea as to why?
Post Reply