1.3 and applescript problem

An instant messenger which can connect to AIM, GTalk, Jabber, ICQ, and more.
Post Reply
hrt
Harmless
Posts: 4
Joined: Thu Aug 28, 2008 12:44 pm

1.3 and applescript problem

Post 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?
mtimmsj
Frappa
Posts: 144
Joined: Wed Jun 08, 2005 6:55 pm
Location: Olympia, WA

Re: 1.3 and applescript problem

Post 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
hrt
Harmless
Posts: 4
Joined: Thu Aug 28, 2008 12:44 pm

Re: 1.3 and applescript problem

Post by hrt »

Thanks, next time I'll check documentation closer.
Post Reply