• 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: add element to existing record
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Address Book: add element to existing record


  • Subject: Address Book: add element to existing record
  • From: Matthew Galaher <email@hidden>
  • Date: Thu, 23 Oct 2003 08:52:36 -0700

Folks, thanks for you help last week. My script is all done except the last function that actually adds an email address if the person is found to already exist in the Address book.

Where I'm having problems is I don't understand how to add an element to a person that exists. I can get the id, but I seems to be missing something. TIA

--snip This does not work. Whats wrong?
set listOfOnePerson to people whose first name is firstName_toAdd and last name is lastName_toAdd
repeat with aPerson in listOfOnePerson
tell aPerson
make new email at end of emails with properties {label:"home", value:emailAddress_toAdd}
end tell
save addressbook
end repeat
--end snip
_______________________________________________
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: Address Book: add element to existing record
      • From: Paul Berkowitz <email@hidden>
    • Re: Address Book: add element to existing record
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Need to script tracking in multiple Quark files-correction
  • Next by Date: Re: Print PDF page by page
  • Previous by thread: [ABSTRACT] Styled Text to HTML (or RTF, or...)
  • Next by thread: Re: Address Book: add element to existing record
  • Index(es):
    • Date
    • Thread