Address Book scripting
Address Book scripting
- Subject: Address Book scripting
- From: John <email@hidden>
- Date: Sun, 12 Sep 2004 08:09:31 -0600
I'm trying to select an entry in Address Book from a FMP script. Any ideas?
John
(* get name from FMP *)
tell application "FileMaker Developer"
set lookupName1 to field "First Name" of table "Contacts"
set lookupName2 to field "Last Name" of table "Contacts"
set lookupName to field "Contact Name" of table "Contacts"
end tell
(* look the name up in Address Book,
if the name doesn't exist, create a new record *)
tell application "Address Book"
activate
if not (exists person lookupName) then
make new person at the end with properties {first name:lookupName1, last name:lookupName2}
save addressbook
end if
person lookupName (* this doesn't work *)
end tell _______________________________________________
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