• 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: birth date from Address Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: birth date from Address Book


  • Subject: Re: birth date from Address Book
  • From: John Delacour <email@hidden>
  • Date: Wed, 12 Mar 2003 20:23:43 +0000
  • Mac-eudora-version: 6.0a11

At 10:41 am -0800 12/3/03, Paul Berkowitz wrote:

> What if you need to update that field in the address book? Can you do:
set last name of theProp to "MyName"

All that does is change the value of that record property in the variable.
It doesn't change anything in the real person. On the other hand, if you
were going to make a NEW person, it would be a much faster way:

set newPerson to make new person with properties theProp

You still have to make the _elements_ (emails, IM fields, phones, addresses)
separately 'at' newPerson - they're not properties.

No comprendo! Surely this should work, and according to the event log, it does work, but I can run this script a thousand times and end up with not a single Joe Bloggs in my address book. So far as I can see Address Book is simply another badly broken affair like Mail. I do wish someone would tell us what's going on.


tell application "Address Book"
set p to {nickname:"J_Bloggs", name:"Joe Blox"}
make person with properties p
properties of result
end tell



tell application "Address Book"
make with properties {nickname:"J_Bloggs", name:"Joe Blox"} new person
person id "5ED3C66C-54C7-11D7-AD8C-00039357DBA6:ABPerson"
get properties of person id "5ED3C66C-54C7-11D7-AD8C-00039357DBA6:ABPerson"
{birth date:missing value, organization:missing value, class:person, modification date:missing value, job title:missing value, title:missing value, phonetic first name:missing value, nickname:"J_Bloggs", id:"5ED3C66C-54C7-11D7-AD8C-00039357DBA6:ABPerson", home page:missing value, middle name:missing value, first name:missing value, name:"", maiden name:missing value, note:missing value, suffix:missing value, last name:missing value, creation date:date "Wednesday, March 12, 2003 8:15:29 pm", phonetic last name:missing value}
end tell
_______________________________________________
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.
  • Follow-Ups:
    • Re: birth date from Address Book
      • From: Darwin Zins <email@hidden>
References: 
 >Re: birth date from Address Book (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: assistance with script, part 2
  • Next by Date: Re: running applescripts from Mail
  • Previous by thread: Re: birth date from Address Book
  • Next by thread: Re: birth date from Address Book
  • Index(es):
    • Date
    • Thread