Page 1 of 1
Applescript: Away with mute sounds?
Posted: Sat May 24, 2008 12:08 am
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.
Re: Applescript: Away with mute sounds?
Posted: Sat May 24, 2008 3:05 pm
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.
Re: Applescript: Away with mute sounds?
Posted: Sat May 24, 2008 5:12 pm
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?