Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: View Address Book birthdays in iCal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: View Address Book birthdays in iCal
Authored by: mark hunte on Jun 06, '05 03:26:38PM
Heres one that I wrote for my address book.

It calcs the age of the person, and shows it when you click the birthday tab in addressbook.

it needs to be compiled and put into the addressboog plugins folder

using terms from application "Address Book"
	on action property
		return "birth date"
	end action property
	
	on action title for p with e
		
		return (first name of p & " is " & ((year of (current date)) - (year of e)) as string) & " yrs old,  " & (day of e as string) & " " & (month of e as string) & " - this Year"
	end action title
	
	on should enable action for p with e
		return true
	end should enable action
	
	on perform action for p with e
		
		return true
		
	end perform action
end using terms from

---
mh

[ Reply to This | # ]