Adium

Ticket #12822 (closed defect: fixed)

Opened 7 months ago

Last modified 4 months ago

Applescript Group attribute returns "missing value"

Reported by: ecsherwo Owned by: applmak
Milestone: Component: AppleScript
Version: 1.4b8 Severity: major
Keywords: Group properties Cc:
Patch Status:

Description

In the latest beta version of adium it appears that the ability to pull a users contact group is broken and always returns "missing value"

tell application "Adium" to get the group of contact "username"

Result: missing value

tell application "Adium" to get properties of the contact "username"

Result: {image:missing value, name:"username", id:"Jabber.username.com", account:account id 11 of service "Jabber" of application "Adium", idle time:10, group:missing value, class:contact, notes:missing value, status type:away, status message:"Away", blocked:false, display name:"User Name"}

If I downgrade to 1.3.5, this begins to work again and the correct group name is returned.

Change History

Changed 7 months ago by ecsherwo

Other notes:

Using OS X 10.5.8 This issue affects all my different IM accounts, which include: sametime and jabber.

There are multiple different machines and accounts here that I have recreated this on.

Changed 4 months ago by jas8522

  • severity changed from normal to regression
  • milestone set to Adium 1.4

Changed 4 months ago by zacw

  • severity changed from regression to major

This is very likely caused by the fact that there no longer exists one group for a given contact. The AS dictionary should be updated to return a nondeterminate group for this query or not support it, and the overall groups array should be provide.

Changed 4 months ago by Zachary West <zacw@…>

  • status changed from new to closed
  • resolution set to fixed

(In  e7db526620d1) Add a "groups" property to contacts, removing the "group" property. Fixes #12822.

AppleScript appears to not use KVC things, so "cocoa key = groups.allObjects" doesn't work, so a helper method was necessary. Lame.

Changed 4 months ago by Robby

  • milestone Adium 1.4 deleted
Note: See TracTickets for help on using tickets.