• 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
Programming the address book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programming the address book


  • Subject: Programming the address book
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 26 Oct 2003 14:47:13 -0700

The "name" property is read only; you have to parse first name, last name, middle name (if any), and suffix (if any). In mail.app, "sender" is plain text. This means you can not simply plug in the name of a sender into a new person in the address book, but have to parse the sender text.

This is easy if there's only one or two parts to the name, but what about a three-element name? is it first, middle, last, or is it first, last, suffix? (I'm ignoring for the moment senders such as "Doe, John H."

I can parse this stuff, making certain assumptions, but isn't there an easier way? If not, shouldn't there be?

Do the Address Book and Mail.app scripting implementors talk to each other?

--Michelle

--
Discordians don't pray: it is far too dangerous.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Programming the address book
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Get IP
  • Next by Date: Re: Programming the address book
  • Previous by thread: Re: "Run Applescript" rule
  • Next by thread: Re: Programming the address book
  • Index(es):
    • Date
    • Thread