Open this script in Script Editor and save it as a compiled script (.scpt) in ~/Library/Scripts. That script will then remember your username until the next time you open it in Script Editor.
Usage:
1. Create a chat with yourself on AIM. (The script would do this automatically, but this functionality is broken as of 1.3.2.)
2. Run the script. If it doesn't know your AIM username, it will ask for it. If you followed the instructions above, it will remember your username for future runs.
Once it knows your username, it will send a message to that username from that username.
*)
propertyaim_name:missing value
tellapplication"Adium"
ifaim_name=missing valuethen
activate
--If the user cancels, the script will simply end, so we don't need to handle that ourselves.
setaim_nametotext returnedof(display dialog�
"Please enter your AIM username:"defaultanswer�
""buttons["Cancel","OK"]defaultbutton2)
endif
--set aim_contact to contact aim_name of account aim_name of service "AIM"
--make new chat with contacts [aim_contact] with new chat window
sendchatid("AIM."&aim_name)message"This is a message from yourself."