adium/adium

6194bf1c1f66
Update version number in Info.plist. Add a ticket number to Changes.txt.
(*
Requirements:
* Adium 1.3 or later
* An AIM account
Installation:
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.
*)
property aim_name : missing value
tell application "Adium"
if aim_name = missing value then
activate
--If the user cancels, the script will simply end, so we don't need to handle that ourselves.
set aim_name to text returned of (display dialog
"Please enter your AIM username:" default answer
"" buttons ["Cancel", "OK"] default button 2)
end if
--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
send chat id ("AIM." & aim_name) message "This is a message from yourself."
end tell