Page 1 of 1

1.3 and applescript problem

Posted: Thu Aug 28, 2008 12:52 pm
by hrt
I was using the following applescript code without a problem until I upgraded to 1.3 -

tell application "Adium"
set status of every account to the first status whose name is "At Work"
end tell

It now gives the following error:

Adium got an error: Can’t set name of status to status 1 whose name = "At Work".

I've tried changing the status to one of the generic ones and still get the same error. I've also tried this code:

tell application "Adium" to set status of every account to the status "Away"

same error message.

Any suggestions?

Re: 1.3 and applescript problem

Posted: Fri Aug 29, 2008 12:48 am
by mtimmsj
Name is no longer a property of the status class. You should be using title:

Code: Select all

tell application "Adium"
  set status of every account to the first status whose title is "At Work"
end tell

Re: 1.3 and applescript problem

Posted: Fri Aug 29, 2008 12:57 am
by hrt
Thanks, next time I'll check documentation closer.