• 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
Re: Getting iChat buddy id from IMServices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting iChat buddy id from IMServices


  • Subject: Re: Getting iChat buddy id from IMServices
  • From: Robert Cerny <email@hidden>
  • Date: Wed, 2 Jan 2008 14:26:45 +0100


On 2.1.2008, at 7:39, Derrick Bass wrote:

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


Hi,
I didn't test it by myself, but I believe you can use the new scripting bridge support introduced in Leopard.


<file:///Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/ScriptingAutomation/Reference/ScriptingBridgeFramework/index.html#//apple_ref/doc/uid/TP40005074 >

HTH
Robert
_______________________________________________

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


References: 
 >Getting iChat buddy id from IMServices (From: Derrick Bass <email@hidden>)

  • Prev by Date: NSView in NSMenuItem
  • Next by Date: Re: Scripting Bridge && filteredArrayUsingPredicate
  • Previous by thread: Getting iChat buddy id from IMServices
  • Next by thread: How to disallow user from selecting locked folders
  • Index(es):
    • Date
    • Thread