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

Re: Address Book: add element to existing record


  • Subject: Re: Address Book: add element to existing record
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 23 Oct 2003 12:50:08 -0700

On 10/23/03 10:52 AM, "Paul Berkowitz" <email@hidden> wrote:

>> the problem is that he didn't include "save addressbook" in the script,
>> so the book didn't have a visual update.
>
> Yes he did:
>
>
>>> --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
>
> See? Right at the end, where it should be.

Actually, for efficiency, it's better after the 'end repeat' line, just once
at the end. But it would work (slowly) every repeat loop too.

--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Re: Address Book: add element to existing record (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Need to script tracking in multiple Quark files-correction
  • Next by Date: weird TID?
  • Previous by thread: Re: Address Book: add element to existing record
  • Next by thread: Address Book: add element to existing record-> Disregard
  • Index(es):
    • Date
    • Thread