Re: birth date from Address Book
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.