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

Re: Address Book scripting


  • Subject: Re: Address Book scripting
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 12 Sep 2004 13:03:55 -0700

On 9/12/04 12:22 PM, "John" <email@hidden> wrote:

> I understand your point about first and last names, but the real
> problem is getting Address Book to display that record.

Really? But your script wasn't trying to display it, just to get it. It's
quite easy (if a somewhat unexpected method: open location "addressbook://"
& personID, after getting personID as ID of thePerson) ) to display a person
once you have the person.

So your problem remains precisely how to get the person from the name,
exactly what my reply concerned. You evidently have your 'lookupName'
variable, derived from "Contact Name" field in FMP - WRONG for purposes of
Address Book. I suggested a number of ways you could deal with that. Deal
with it you must. Once you get that worked out, you'll be able to get the
person. Then you can get the ID of the person, and thus display it. You're
working back to front if you think the problem is with displaying - the
problem is getting the person object from the first and last names.

Since you're creating a new person from just first and last names - no
suffix, prefix, middle name, company setting, etc. etc. - _all_ that matters
now is the name order, and whether there are both first and last names, or
only one.

--
Paul Berkowitz


 _______________________________________________
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

  • Prev by Date: Re: Move script problem
  • Next by Date: Re: Chevrons test
  • Previous by thread: Re: Address Book scripting
  • Next by thread: Re: Address Book scripting
  • Index(es):
    • Date
    • Thread