Address Book label properties
Address Book label properties
- Subject: Address Book label properties
- From: Michael Gmail <email@hidden>
- Date: Fri, 21 Oct 2005 10:18:35 -0500
I've been fiddling around with scripting Address Book, but I'm
finding that I can't set the label property of email, url, phone &
address elements. I'm using the code from Ben Waldie's recent MacTech
article, slightly modified:
tell application "Address Book"
set thePerson to make new person with properties {first
name:"Ben", last name:"Waldie", organization:"Automated Workflows,
LLC", job title:"President"}
tell thePerson
make new email at end of emails with properties
{value:"email@hidden", label:"Work"}
make new url at end of urls with properties {value:"http://
www.automatedworkflows.com", label:"Work"}
make new phone at end of phones with properties
{value:"610-935-0652", label:"Work"}
make new address at end of addresses with properties
{street:"123 Any Street", city:"Anytown", state:"PA", zip:"99999",
label:"Work"}
end tell
save addressbook
end tell
The script does everything expected, except that the labels of the
phone number etc. in the new entry are all "other". This is in Tiger,
Address Book 4.0.2. Any idea what might be going on?
Thanks,
Michael
--
As they say in the Brazilian state of Sergipe, no punishment is harsh
enough for those who believe in the monkeys.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden