Adium

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8825 closed defect (fixed)

Adium AppleScript always returns missing value for name/title of single contact chats

Reported by: mtimmsj Owned by: applmak
Milestone: Adium 1.3 Component: AppleScript
Version: Severity: normal
Keywords: AppleScript name chat "missing value" Cc:
Patch Status:

Description

Steps to reproduce:

Have Adium open with at least one open chat that is not a group chat, then run the following in Script Editor:

tell application "Adium" to get name of every chat

This always returns missing value for single contact chats. Multi-user (a.k.a. group) chats return a name/title properly. I would have expected the name of single contact chats to return the display name of the contact that you are chatting with because that is what is displayed in the tab for that chat.

Change History (8)

comment:1 Changed 12 years ago by Carlos Morales

Milestone: Needs dev review

use

tell application "Adium" to get title of every window of every chat

in the meantime

comment:2 in reply to:  1 Changed 12 years ago by Mike

Replying to djmori:

use

tell application "Adium" to get title of every window of every chat

in the meantime

Unfortunately this actually does not do what one would expect. In a quick test I did, I had three chat windows open, one was a single-user Sametime chat, another was a single-user Yahoo! chat and the third was a group Sametime chat with a name of "test". The group chat was active and when using your suggested workaround I get:

{"test", "test", "test"}

If I changed the active chat to one of the other ones your suggested workaround would return three identical strings all matching the name of the active window.

comment:3 Changed 12 years ago by Mike

I should clarify that the suggested workaround does in fact work if each chat window consists of a single tab.

comment:4 Changed 12 years ago by Carlos Morales

comment:5 Changed 12 years ago by Robert

Owner: changed from nobody to Matt Handley

comment:6 Changed 12 years ago by Robert

Milestone: Needs dev reviewGood idea for "later"

comment:7 Changed 12 years ago by Matt Handley

Resolution: fixed
Status: newclosed

(In [23993]) Added useful name property for chats with a single user in them. Probably, mostly, but tell me if I'm wrong fixes #8825.

comment:8 Changed 12 years ago by Robert

Milestone: Good idea for "later"Adium X 1.3
Note: See TracTickets for help on using tickets.