How do I script a password into a program that has been opened

I can open AIM (AOL INSTANT MESSENGER) using Applescript. Is there a way, using applescript, to tell it to type my password into the open window?

Can’t use iChat and tie the password to your Keychain? (Thus logging you in at launch.)