Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
352 Scriptable Text Editor Commands
PARAMETERS
None
RESULT
None
EXAMPLE
tell application "Scriptable Text Editor"
select paragraph 1 of document "Report"
cut
select the last insertion point of document "Report"
paste
end tell
NOTES
The Paste command replaces the current selection with the contents of the
Clipboard. If the current selection is an insertion point, the Paste command
inserts the contents of the Clipboard at the insertion point.
Revert B
The Revert command is a request to replace one or more documents with the
versions of the documents that were most recently saved.
SYNTAX
revert referenceToDocument