Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does Mail.app link up to AddressBook?



Thanks for the pointers Greg. I only program on Java on the mac, so I have very little experience where to look.

After quickly reading the docs, I think the solution to getting the Semantic Web address book to work nicely with the rest of OSX is simply to manipulate the AddressBook database using the given API. This means that the address book information will be in two places, probably a good thing anyway.

If anyone has written a JNI wrapper for the AddressBook API, please let me know.

Henry

On 9 Dec 2006, at 21:32, Greg Guerin wrote:

Henry Story wrote:

Does anyone know (or know someone who knows) how Mail.app communicates with
AddressBook to display the picture of the sender in the mail metadata pane?
Is there anyway one can do the same from a Java application?

Searching ADC: <http://developer.apple.com/search/search.html>

with these keywords:
  address book api

shows this likely candidate:
<http://developer.apple.com/documentation/UserExperience/ Conceptual/AddressBook/index.html>


Further confirmation can be obtained with this command:
  otool -L /Applications/Address Book.app/Contents/MacOS/*

which shows AddressBook.framework as one of the referenced frameworks.


I.e. what do I have to do to my Semantic Web AddressBook so that it can
communicate with Mail? Is there anything I need to do to get the same
integration with iChat and other apps?

I think the answer will be something like "replace the AddressBook
framework", which seems like a large amount of work, assuming it's even
possible.


Maybe you can make the semantic book a service in the Services menu.
Here's an example that lets any shell script become a service. Might be
adaptable to Java:
<http://wafflesoftware.net/thisservice/>


  -- GG


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/henry.story% 40bblfish.net


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: How does Mail.app link up to AddressBook? (From: Greg Guerin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.