Language Guide
APPENDIX B
Scriptable Text Editor Dictionary
348 Scriptable Text Editor Commands
Cut B
The Cut command is a request to remove an object and put it on the Clipboard.
If the Cut command includes a direct parameter, it removes the object specified
in the direct parameter. If the command does not include a direct parameter, it
removes the object in the current selection.
The Cut command has the same result as choosing the Cut menu item in the
Scriptable Text Editor: the object that was cut replaces any objects that were
previously on the Clipboard.
SYNTAX
cut [ referenceToObject ]
PARAMETER
referenceToObject
A reference to the object to be cut.
Class: Reference
RESULT
None
EXAMPLE
Both of the following statements cut the first paragraph of a document.
tell application "Scriptable Text Editor"
set the selection to paragraph 1 of document "Test"
cut
end tell
tell application "Scriptable Text Editor"
cut paragraph 1 of document "Test"
end tell