Scripting Additions Guide
Table Of Contents
CHAPTER 1
Introduction to Scripting Additions
4 Sending Scripting Addition Commands
For example, the Offset command provided by the String Commands scripting
addition reports the offset, in characters, of a string within another string.
Offset is also a property of several Scriptable Text Editor objects and is thus a
word in the Scriptable Text Editor dictionary. Therefore, you cannot use Offset
as a scripting addition command within Tell statements to the Scriptable Text
Editor. If you do, you’ll get a syntax error, because the Scriptable Text Editor
treats the word Offset as a property of a text object.
If you specify a script object as the target of a scripting addition command,
the script object either handles the command itself (potentially modifying it)
or uses a Continue statement to pass the command to the default target
application. For more information about scripting addition commands, script
objects, and the Continue statement, see Chapter 9, “Script Objects,” of the
AppleScript Language Guide.