• 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
Address Book scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Address Book scripting
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Chevrons test
  • Next by Date: Re: Chevrons test
  • Previous by thread: Re: keystroke (ASCII character 28) using shift down
  • Next by thread: Re: Address Book scripting
  • Index(es):
    • Date
    • Thread