Getting iChat buddy id from IMServices
Getting iChat buddy id from IMServices
- Subject: Getting iChat buddy id from IMServices
- From: Derrick Bass <email@hidden>
- Date: Wed, 2 Jan 2008 00:39:28 -0600
I have an application that uses the InstantMessage and AddressBook
frameworks gather IM information about a contact and then uses
Applescript to tell iChat to send that buddy a message. But it stopped
working with Leopard and I can't find a fix.
In Tiger, I could construct the buddy ID by taking the service name
(using IMPersonServiceNameKey), appending a colon, and appending the
buddy's screen name (using IMPersonScreenNameKey). So I would get
something like AIM:wonderfulbuddy and I could pass that to iChat via
Applescript.
But it seems that in Leopard, iChat is using some sort of GUID in
place of the service name. My buddy IDs in Script Editor appear like
"DA369698-A9EA-4BED-95F3-890092D1086D:wonderfulbuddy".
So... is there a way to extract this information from the Instant
Message framework so I can communicate with iChat? Or is there some
other way I can IM a buddy I've gotten via the framework?
Thanks for any help!
Derrick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden