Re: Address Book label properties
Re: Address Book label properties
- Subject: Re: Address Book label properties
- From: Michael Gmail <email@hidden>
- Date: Sat, 22 Oct 2005 21:58:56 -0500
Doesn't help....
Oh, well, no big deal I guess--at least not worth spending a lot of
time tracking down the problem, as long as the rest of it works.
Thanks,
Michael
On Oct 21, 2005, at 11:38 AM, Paul Berkowitz wrote:
On 10/21/05 8:18 AM, "Michael Gmail" <email@hidden> wrote:
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?
You've got a defective Address Book maybe? It works perfectly here
- all
labels "work". OS 10.4.2, AB 4.0.2. (Interesting that Address Book
changes
the capitalization to its standard - in English language versions -
"work"
with lower-case "w".)
Try replacing the AB database:
1. [TIGER]: In Address Book, select "All" in the Group column. Go to
File/Export Group vCard... and export.
2. Go to
~/Library/Application Support/AddressBook
and remove or trash the whole AddressBook folder, and also go to
~/Library/Preferences/com.apple.AddressBook.plist
and remove or trash that com.apple.AddressBook.plist file.
3. Launch Address Book, go to File/Import.../vCards, and import the
vCard
file(s) you just exported in step 1. Address Book will re-populate.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
--
<http://globalocal.blogspot.com/>
In a few years we'll all be speaking Amish anyway.
_______________________________________________
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