Home
Biography
License & Disclaimer

Trialware Applications
•  DayliteABMenu
•  Dialectic
•  Docktop
•  EntourageABMenu
•  Finder Window Manager
•  JABMenu
•  Lilt
•  Name those Files!

Freeware Applications & Scripts
•  ABNavigator
•  Address Book to HTML
•  AutoFill
•  Battery Info
•  Check Failed Password Attempts
•  Convert Script to Markup Code
•  Forward Mail to SMS
•  GeoParty!
•  Get Artwork From Amazon
•  Get Definition...
•  iTunes Music Store Estimator
•  Join PDFs
•  MacGiftWrap
•  MailMover
•  Make MP3 Audio Book
•  Name that iTune!
•  Preferential Treatment
•  RaPaCiousTranslator
•  Safari Selection to...
•  Save Scripts as Text
•  Search Mail.app for Flagged Messages
•  Send SMS via iChat AV
•  Sync Entourage & AB Groups
•  Miscellaneous Snippets of Code

Example AppleScript Studio Projects
•  Countdown
•  DockMenu
•  Installerish
•  Jumpy
•  Landmine
•  MenuApp
•  PictureWindows
•  Quizzer
•  Miscellaneous Projects
  JNSoftware

Send SMS via iChat AV

I am 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, my 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 Send SMS via iChat AV (view script source code)
Version: 1.0.1b
Release Date: July 15, 2003
Requirements: Mac OS X 10.3+, iChat AV, & Address Book or Microsoft Entourage
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 my 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.


Last site update: May 4, 2008   |   Copyright © 2008 Jonathan Nathan. All Rights Reserved.
AppleScript, Finder, Macintosh and Mac OS X are registered trademarks of Apple, Inc.
All other products mentioned are copyright of their respective owners.
  spacer