Set "Away" Status on Several Apps at Once

0

1

This question is slightly born out of laziness, but here goes anyway.

I use the following apps on OSX:

  • Skype
  • Adium
  • Linkinus

On each, I have an automated status change that triggers after being idle for 30 or so. However, if I'm leaving for an extended period of time, I want to go ahead and set the status on all three. It isn't a whole lot of work to do this manually on all three, but ideally I'd like to make this one keystroke.

What should I do to start this? Should I figure out how to manipulate each one using some applescript and then bind the resulting script to a key? Is there an easier way to do this?

whaley

Posted 2010-08-10T11:18:22.217

Reputation: 1 376

Answers

2

Should I figure out how to manipulate each one using some applescript and then bind the resulting script to a key?

Yes.

Here's a start:

tell application "Adium"
   go away (every account)
end tell

tell application "Skype"
   send command "SET USERSTATUS AWAY" script name "My Script"
end tell

ghoppe

Posted 2010-08-10T11:18:22.217

Reputation: 6 124

the above works for skype... for adium I receive the following:

error "Can’t set «class Psts» to «constant EstaSawy»." number -10006 from «class Psts».

Adium version is 1.3.10, if that matters. – whaley – 2010-08-10T20:03:37.437

@whaley Sorry, guess the Adium dictionary has changed. Edited my answer. – ghoppe – 2010-08-10T22:23:47.487

Yup, that Adium applescript works now. I'll accept and upvote since I doubt I'll get any responses here specific to Linkinus. – whaley – 2010-08-11T15:18:05.010