• 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
Address Book label properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Address Book label properties
      • From: Paul Berkowitz <email@hidden>
    • Re: Address Book label properties
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Change a folder to list view
  • Next by Date: Re: Days and hours
  • Previous by thread: Re: Just returning Filename... not whole path
  • Next by thread: Re: Address Book label properties
  • Index(es):
    • Date
    • Thread