Adium Applescript: Away with sounds muted?

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

Adium Applescript: Away with sounds muted?

Post by Mikooster »

I have been looking and looking but unable to find this. Basically, I want a way to set my away message through Quicksilver, which I have done with the following:

Code: Select all

using terms from application "Quicksilver"
	on process text ThisClipping
		
		tell application "Adium"
			set the status type of the first account to away
			set the status message of the first account to ThisClipping
		end tell
		
	end process text
end using terms from
This works, but when I go away I want the "mute sounds" option checked, which this does not do, nor can I find a way to do this through applescript.

Another idea is that I could create a new custom away message named "Mute Away", and use applescript to set my status to that specific pre-saved status, and use applescript to only change the message of that status rather than make a new status. I also could not figure out how to get Applescript to set my away message to one that already has been pre-saved.

If anyone knows a way, I would really appreciate the help.

Thanks!
Mikooster
Harmless
Posts: 4
Joined: Thu Apr 24, 2008 1:19 am

Re: Adium Applescript: Away with sounds muted?

Post by Mikooster »

Ah, I feel dumb. I fixed this myself.

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 ThisClipping
end tell
EDIT: this actually works, but it has a weird issue...

It sets 2 of my accounts to a "Custom" status, with the same properties as the "Away (muted)" status (it is muted, and the away message is correct), and it sets my third account to the correct "Away (muted)" status. I have ICQ, Google talk, and AIM, and ICQ is the only one that sets correctly.

Anyone know why?
Post Reply