AppleScript for SMS

You can use AppleScript to send SMS with your cellphone to one phone number or many phone numbers. You can use the Script Editor application (included with Mac OS X) and from it open the MegaCellX application to see the AppleScript dictionary with available commands.You can find some examples here.

Usign SMS Event in a AppleScript

MegaCell can execute AppleScript for SMS events. All you have to do is click on the "Select a file..." into SMS preferences and select a compiled AppleScript (extension .scpt).

You can make a AppleScript with subroutines and associeta a subroutine to particulare SMS event, so you can combine separate scripts into a single file. When an events occurs, MegaCell will retrive the AppleScript file the you have indicated into SMS Preferences. If the script has the subroutine event MageCell will execute it with data desribing the event.

AppleScript subroutines for SMS Events

Subroutine

Description

sms_sent(parameters)

Executed when an SMS is sent successfully with MegaCell.

sms_received(parameters)

Executed when an incoming SMS is read from the phone.

Parameters

Description

p_phonenumber

Phone number of the sender or receiver.

p_name

Name of the sender or receiver.

p_smstext

Text of the SMS.

p_date

Date and time the SMS was sent or received.