scripting iChat

Hi,

I would like to write a script that automatically updates the away message on iChat, taking information from my iCal calendar. Does anyone know of any iChat scripts that I can browse through, so I can get a better understanding of how I might implement this?

Thanks!!

-V-