Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
338 Scriptable Text Editor Object Class Definitions
Text Series of characters contained in the text
Text Item Text items contained in the text
Word Words contained in the text
COMMANDS HANDLED
Copy, Count, Cut, Data Size, Delete, Duplicate, Exists, Get, Make, Move,
Select, Set
DEFAULT VALUE CLASS RETURNED
Styled Text
EXAMPLE
tell document "Memo" of app "Scriptable Text Editor"
move (the text from paragraph 10 to paragraph 12) to end
end tell
NOTES
The Scriptable Text Editor does not allow you to refer to an object of class Text
with the Index reference form (such as text 5 of characters 1 thru
1024) because it does not make sense to number the many possible objects of
class Text in a text object.
Text is a plural class name. You cannot use it in places where AppleScript
expects a singular class name. For example, the following statement results
in a compilation error.
tell document "Intro" of app "Scriptable Text Editor"
get every text from paragraph 1 to paragraph 2
end tell
--causes an error because text is a plural class name