• 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 15:03:01 +0000
  • Mac-eudora-version: 6.0a11

At 11:35 pm -0800 11/3/03, Paul Berkowitz wrote:

Address Book OS 10.2 is too new to be documented yet. I just study the
dictionary and try things. 'properties' property is in the Dictionary, so I
tried it and saw a bunch of 'missing value' for properties with no value.
That looked a lot more useful than stumbling around setting variables to
non-existing properties, and then using the variable in a try block (I still
have to do that somewhere), and so it proved.

This list is where you'll find the most current information.

And here it is. It seems very long-winded to get properties like that. If Address book sucks, as it does, then the last thing that's needed is to make a meal of its shortcomings. The thing can be done quite simply like this

tell app "Address Book"
set birthday to person "John Delacour"'s birth date
try
birthday
on error
set birthday to false
beep
return
end try
end tell
if birthday is not false then set d to "" & day of birthday
set m to month of birthday
set y to year of birthday
d & " " & m & ", " & y
--> "27 January, 1916"

JD
_______________________________________________
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>
    • Re: birth date from Address Book
      • From: Paul Skinner <email@hidden>
    • Re: birth date from Address Book
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: birth date from Address Book (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: tell inside a tell
  • Next by Date: scripting mail to select mailboxes
  • Previous by thread: Re: birth date from Address Book
  • Next by thread: Re: birth date from Address Book
  • Index(es):
    • Date
    • Thread