Address Book & Applescript

Ken Ray kray at sonsothunder.com
Mon Dec 23 13:24:01 EST 2002


It appears that this is a bug in the Address Book in 10.2; I can enter a
birthday on a card, but when I get the birth date, I get nothing - and when
I get the properties of the address card, it says "missing value".

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "sims" <sims at ezpzapps.com>
To: <use-revolution at lists.runrev.com>
Sent: Monday, December 23, 2002 10:46 AM
Subject: Address Book & Applescript


> The following applescript will grab names and the birth date field from
> the Address Book BUT only in Mac OS 10.2.3
>
> Does anyone have the special Apple incantation for getting the
> birth date from the Address Book BUT in Mac OS 10.2 up to 10.2.3??
>
> Also - Happy Holidays to all!
>
> sims
>
>
> tell application "Finder" to make file at desktop with properties
> {name:"Birthday export.txt"}
> set exportFile to (((path to desktop) as string) & "Birthday
> export.txt") as alias
>
> tell application "Address Book"
> set addressBookAsList to every person
> open for access exportFile with write permission
> repeat with i from 1 to count of addressBookAsList
> set theName to (name of item i of addressBookAsList)
> set theBirthDate to (birth date of item i of
> addressBookAsList) as string
> write (theName & tab & theBirthDate & return) as
> string starting at eof to exportFile
> end repeat
> close access exportFile
> end tell
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list