• 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: Paul Skinner <email@hidden>
  • Date: Wed, 12 Mar 2003 12:21:39 -0500

On Wednesday, March 12, 2003, at 10:03 AM, John Delacour wrote:
snip

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

set CurmudgeonFactor to ((current date) - (date "Thursday, January 27, 1916 12:00:00 AM")) / 60 / 60 / 24 / 360
-->88.393090888632

This must be bad data. This CurmudgeonFactor is too high! Even for you John. : )

Paul Skinner
_______________________________________________
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.

References: 
 >Re: birth date from Address Book (From: John Delacour <email@hidden>)

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