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