Adium

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8820 closed defect (fixed)

How do you get the current status message?

Reported by: dcox Owned by: applmak
Milestone: Adium 1.2.1 Component: AppleScript
Version: Severity: normal
Keywords: Cc:
Patch Status:

Description

In previous version, the script below would give you your status message in adium: tell application "Adium" set foo to (my status message as text) end tell

I can now try to get the status message of some specific account, or even iterate through them, but that is a pain when making external apps and you just want to see what the UI has listed for the status message. On top of that, even if I do go after the status message on an account that supports them with a script like:

tell application "Adium"

set foo to (status message of account 1 as rich text)

end tell

I get an error of the form: Adium got an error: AppleEvent handler failed.

Being able to set and read a global message as well as set one is needed to really interact with Adium from the outside.

Change History (5)

comment:1 Changed 12 years ago by Carlos Morales

Milestone: Adium X 1.2.1

comment:2 Changed 12 years ago by Matt Handley

Owner: changed from nobody to Matt Handley
Status: newassigned

The error you're getting is really an error, and not your fault. I'm fixing it now.

comment:3 Changed 12 years ago by Matt Handley

Resolution: fixed
Status: assignedclosed

(In [22232]) An account's status message now correctly returns an NSTextStorage, rather than an NSAttributedString, which was causing an error. Closes #8820.

comment:4 Changed 12 years ago by Evan Schoenberg

Milestone: Adium X 1.2.1Adium X 1.2.2

comment:5 Changed 12 years ago by Evan Schoenberg

Milestone: Adium X 1.2.2Adium X 1.2.1
Note: See TracTickets for help on using tickets.