• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting iChat buddy id from IMServices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting iChat buddy id from IMServices
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Re: NSOutlineView, NSTreeController and itemForPersistentObject...
  • Next by Date: How to disallow user from selecting locked folders
  • Previous by thread: Re: Scripting Bridge and Finder selection
  • Next by thread: Re: Getting iChat buddy id from IMServices
  • Index(es):
    • Date
    • Thread