Re: address book data without opening app?
Re: address book data without opening app?
- Subject: Re: address book data without opening app?
- From: Philip Aker <email@hidden>
- Date: Wed, 27 May 2009 22:52:36 -0700
On 2009-05-27, at 20:02:20, Michael Grant wrote:
Is there any way to access Mac Address Book data in AppleScript
without actually opening the application? Maybe through shell
commands?
There are interfaces available in C and Objective-C.
The framework for both is /System/Library/Frameworks/
AddressBook.framework.
Can you point me to any documentation on how to use that stuff in AS?
You will have to use either C or Objective-C to create a binary which
does what you need and then interact with it using Applescript native
calls.
The easiest thing to do would be use Xcode and adapt one of the C or
Objective-C code examples available at: <http://developer.apple.com/search.php?&q=AddressBook&num=10&site=(samplecode)
> to a tool. Then you could use 'do shell script' to call the tool.
An AppleScript interface can be coded in an application or an OSAX.
There are examples of how to script a Cocoa application in the
"SimpleScripting…" example series from Apple <http://developer.apple.com/search.php?&q=SimpleScripting&num=10&site=(samplecod
e)> and Technote 1164 <http://developer.apple.com/technotes/tn/tn1164.html
> describes the basics for scripting additions. Scripting guidelines
for developers are described in: <http://developer.apple.com/technotes/tn2002/tn2106.html
>.
§
Or hire someone like me to create an AppleScriptable interface for you.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden