Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
350 Scriptable Text Editor Commands
reference to a single object. For example, the following statement results in
an error:
tell document "Intro" of app "Scriptable Text Editor"
duplicate words whose style contains bold to beginning
end
--result: error; Duplicate can handle single objects only
Make B
The standard Make command is defined on page 105. The Scriptable Text
Editor version of the Make command behaves like the standard version except
that the referenceToLocation parameter, which is required in the standard version
of the command, is optional in the Scriptable Text Editor version:
make [ new ] className [ at referenceToLocation ] ¬
[ with properties
{ propertyName:propertyValue [, propertyName:propertyValue]...}]
[ with data dataValue ]
In addition, the Scriptable Text Editor automatically adds delimiters as needed
around new text objects. When you create text objects with the Make com-
mand, do not include delimiters in the data.
When making a new text item, the Scriptable Text Editor uses the first delimiter
listed in its Text Item Delimiters property as the item’s delimiter.
Not all languages require delimiters between each word. When making new
words, the Scriptable Text Editor relies on both the script code of the text to
be inserted and the script code of the text into which it is being inserted to
determine whether to use delimiters and, if so, which delimiters to use and
where to place them.
Finally, the Scriptable Text Editor provides default values for the data and
properties of objects created with the Make command. If you do not specify
values for all the properties or data of a new object, the Scriptable Text Editor
provides the default values.