I'm not a pro scripter, so I'm sure someone else could write an elegant solution for this problem. This script works, however.
Problem: I want my Mac to automatically send a specific file to a specifc buddy when that person signs on.
Solution: Write an AppleScript, save it as an applet, and tell AIM to run the script once, when the buddy signs on.
set mybuddy to "yourbuddyhere"
set myfile to "Macintosh HD:Users:mikey:Pictures:4giPod.jpg" as alias
tell application "AOL Instant Messenger (SM)"
transfer myfile to mybuddy
end tell
As I said, not an elegant solution, but it functions. Remember to:Mac OS X Hints
http://hints.macworld.com/article.php?story=20040912215547842