Address Book: add element to existing record
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.