Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create a person in Address Book



on 02/10/2002 17:49, Paul Berkowitz at email@hidden wrote:

> They're not properties, they're elements. Just make them 'at' the person, pr
> tell the person to make them him/herself, with the added Cocoa oddity of
> having to make them at the 'beginning' or 'end' of all such elements:
>
> tell application "Address Book"
> set newPerson to make new person with properties {first name: "Steve",
> last name: "Jobs"}
> tell newPerson to make new email at end of emails with properties
> {label:"home", value:"email@hidden"}
> save addressbook
> end

I tried that, but forgot the 'at end'. I will try it.

> (Mustn't forget to 'save addressbook' at the end, or periodically, or it can
> all go up in a puff of smoke.

That would explain why it was so stuffed up before I used 'save addressbook'
that I had to delete my data file and start again.

Thanks,
--
Matthew Smith
_______________________________________________
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: Create a person in Address Book (From: Paul Berkowitz <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.