open location "addressbook://" & myID
open location "addressbook://" & myID
- Subject: open location "addressbook://" & myID
- From: "John R." <email@hidden>
- Date: Mon, 6 Feb 2006 17:54:46 -0500
The only way I know to simply show a specific person in Address Book
is as follows, and I only know that because someone was nice enough
to share their source code.
-----------------------------------
-- Get the unique ID for the currently selected person
tell application "Address Book"
set GuyList to selection
set Guy to item 1 of GuyList
set myID to id of Guy -- note: unicode text
end tell
-- Show that person later
tell application "Address Book"
open location "addressbook://" & myID
end tell
-----------------------------------
Where is Address Book's URL documented, and what else might I be able
to do to sync my Applescript app with Address Book and other apps? I
had no idea the AS "open" command could be used that way with Address
Book. The developer docs I found refer to ObjC classes and names
within something called "Address Book Framework". I found nothing
about using "addressbook://" as a URL to get things done. I found
nothing about what can be done via AS, except for action scripts. Any
hints?
- John R
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden