Re: New Adress in Address Book
Re: New Adress in Address Book
- Subject: Re: New Adress in Address Book
- From: John Delacour <email@hidden>
- Date: Fri, 22 Aug 2003 22:25:10 +0100
At 9:29 pm +0200 22/8/03, michael.slomski wrote:
tell application "Address Book"
make new person at end of last group with properties {last name:"ghj",,
first name:"test", birth date:(date "Dienstag, 2. Juli 1968 12:00:00 Uhr")}
end tell
This will create a new entry. Fine, but how can I add the other information
like phones, street etc?
I can read this info with:
get value of phone 1 of first person
But how can I set this info at the above make statement?
At its simplest:
tell application "Address Book"
set p to {first name:"Ann", last name:"Other"}
set _person to make person with properties p
make phone at end of _person with properties {value:"12345"}
end tell
But you can locate the phone in a number of places.
JD
.
_______________________________________________
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.