I'm not always within earshot of the audible Buddy Alerts that AIM produces, but I always have my pager on my belt, so I wrote a few scripts to email a quick notice to my pager when a buddy signs on. Although I much prefer Fire as my chat client, it does not yet allow a buddy alert to call an AppleScript, so you'll have to use AOL's AIM client to achieve this. This method uses the UNIX mail command to send a message via sendmail (which must already be configured properly). Also, you must be using a Dynamic DNS service.
HOSTNAME=myhostname.dyndns.org
#!/bin/sh mail mytextpager@domain.com < /Users/username/Documents/message.txtWhere mytextpager@domain.com is the email address of your digital pager. Save the script with the .sh extension; for example, save as aimmail.sh. Make the script executable by typing sudo chmod a+x aimmail.sh
tell application "Terminal" do shell script "/bin/sh /Users/username/Documents/aimmail.sh" end tellSave the AppleScript as an application and check the box "Never Show Startup Screen."
Mac OS X Hints
http://hints.macworld.com/article.php?story=20030630162551220