Title: Re: Birthday field on contacts and Palm Sync
On or near 7/16/02 8:02 AM, Jan Martel at [EMAIL PROTECTED] observed:
> I wonder if you could do this by copying the birthday data into one of othe
> custom fields in Entourage (easiest if it was 1-4 which sync directly to the
> Palm)? This would mean adding a step when you entered a contact (or perhaps
> an Applescript could do it automatically?) and of course it would be a pain
> for all your existing contacts, although I *think* you could use Paul's
> Import-Export script to export the contacts and then import the birthday to
> a different field, not sure.
This is the way I'd do it. I use a similar product on my Visor, "Happy Days."
This script will find all contacts with birthdays in 19xx and set the "Custom 3" field to that date as a string, e.g., 12/15/88. To use a different custom field, change "three" to the appropriate number. I use custom field four in Palm as my birthday field.
tell application "Microsoft Entourage"
set bdays to every contact whose birthday contains "19"
repeat with c in bdays
set d to birthday of c
tell me to set d to date (get text 6 thru -1 of d)
set d to my datestring(d)
set custom field three of c to d
end repeat
end tell
on datestring(theDate)
(offset of (text 1 thru 3 of (theDate's month as string)) in " JanFebMarAprMayJunJulAugSepOctNovDec") div 3
text -2 thru -1 of ("0" & result) & "/" & text -2 thru -1 of ("0" & theDate's day) & "/" & text -2 thru -1 of (theDate's year as string)
end datestring
--
My web page: <http://home.earthlink.net/~allenwatson/>
My scripts page: <http:homepage.mac.com/allenwatson>
Microsoft MVP for Mac Entourage/Word--<[EMAIL PROTECTED]>
- Birthday field on contacts and Palm Sync Luis Vallecillo
- Re: Birthday field on contacts and Palm Sync Dennis T Cheung
- Re: Birthday field on contacts and Palm Sync Jan Martel
- Re: Birthday field on contacts and Palm Sync Allen Watson
- Re: Birthday field on contacts and Palm Sync Allen Watson
