Any AppleScript can access call, message and phone status information as well as send messages, dial calls and manage phone properties.
Visit Quick Start - AppleScript Examples for examples.
The AppleScript reactor can run an AppleScript to perform additional actions when an event occurs, such as an incoming call or text message. Attach an AppleScript to an event by adding the AppleScript reactor to the desired trigger in the Triggers Preferences. The AppleScript reactor will prompt you to select a script file.
When the trigger is fired, the AppleScript reactor will look for a method in the script that matches the name of the event that fired the trigger. If the method is found, the AppleScript reactor will execute this method with the event's object and type. If no method is found, the AppleScript reactor will attempt to run the script without passing any parameters.
For performance reasons, AppleScripts are launched from a separate executable. This allows scripts to access BluePhoneElite data during an event, improves BluePhoneElite responsiveness during events, and greatly reduces the chances of an AppleScript problem spreading to BluePhoneElite.
The drawback to this approach is that global variables do not persist between events. For example, a variable set during an incoming call's "ringing" event may not be set when the script is run for the incoming call's "answered" event. Therefore, any data that you need to exchange between events must be written and read by your script.
Use Script Editor to create a new AppleScript:
-- tell AppleScript where to look for the dictionary when it compiles the script
using terms from application "BluePhoneElite 2"
-- set up a method handler
on <trigger> <object> [with event <event>]
-- script body goes here
beep
end
end using terms from
<trigger> The method name (in lower case letters) of the event that fired the trigger.
Available triggers include:
incoming call, outgoing call
incoming message, outgoing message
connection change, proximity change, network change, power change
<object> A variable containing the object that fired the event. The class of this object is determined by the type of trigger.
<event> A variable or an event name. Only present on triggers that have more than one type of event.
If you make this parameter is a variable, it will contain the name of the event.
on connection change theDevice with event theEvent
If this parameter is a static event name, then the method will only be called for events matching that name.
on incoming call theCall with event "ringing"
For a complete description of scriptable features, open the BluePhoneElite AppleScript dictionary from Script Editor.
Sample code and support are available in Community Resources .
Visit apple.com for more information about AppleScript.