JNSoftware
Send SMS via iChat AV
We are keeping this script posted (see below) as it has some use as a learning script but not much utility for its intended purpose. This is because most mobile phone providers automatically create an email address for all their mobile phone subscribers. For instance, our carrier, T-Mobile, uses the format: 2125551212@tmomail.net for their email addresses where the username is simply the full mobile phone number including the area code. So, to send an SMS to your phone, just send an email to this address. (You should contact your mobile phone provider—or see their website—for more information about finding out if your phone has an email address.)
Here is an example of a script that demonstrates how to send an SMS to a mobile phone via email. The following AppleScript can be used to send an SMS to your T-Mobile phone via Mail.app but could very easily be adapted to other carriers and other mail clients. (If you’re using Mac OS X 10.3.x, click the script icon to open this script in a new Script Editor window):
script set the_number to "2125551212@tmomail.net"
set the_message to "My Message"
set the_subject to "My Subject"

tell application "Mail"
    set new_message to (make new outgoing message at end of outgoing messages)
    tell new_message
        set visible to true
        make new to recipient at end of to recipients with properties {address:the_number}
        set subject to the_subject
        set content to the_message
        send
    end tell
end tell



script icon
Version: 1.0.1b
Release Date: July 15, 2003
Script Type: Editable
License: Freeware (GPL)
Installation: Download, expand, and place in the Scripts folder for easy access via the Script Menu.
Description: This script will search your address book in either Microsoft Entourage or Address Book looking for contacts that have mobile phone numbers. You then choose a name from the found contacts (or a new contact if you want to send a message to someone not in your contact list), enter your text message and the script will send your message to the mobile phone of the contact.
Some caveats: This script requires that GUI Scripting is enabled (turn on “Enable access for assistive devices” in the Universal Access Preference pane); the SMS on our mobile system (T-Mobile) appear to be limited to 150 characters or so; you may be charged an additional fee for receiving SMS on your phone, check with your carrier for more information; this may work in iChat 1.0 but it was only tested with iChat AV. Feedback is greatly appreciated.