• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Address Book label properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Address Book label properties


  • Subject: Re: Address Book label properties
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 21 Oct 2005 09:38:59 -0700
  • Thread-topic: Address Book label properties

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Address Book label properties
      • From: Michael Gmail <email@hidden>
References: 
 >Address Book label properties (From: Michael Gmail <email@hidden>)

  • Prev by Date: Re: Address Book label properties
  • Next by Date: Re: filemaker applescript question
  • Previous by thread: Re: Address Book label properties
  • Next by thread: Re: Address Book label properties
  • Index(es):
    • Date
    • Thread