Select
A Select command is a request to select a text object or bring a Scriptable Text Editor document or window to the front. Using the Select command to select a text object is the same as highlighting the text object by double-clicking it or dragging the cursor across it while holding down the mouse button.
SYNTAX
select referenceToObject
PARAMETER
- referenceToObject
- A reference to the text object, document, or window to select.
Class: Reference
RESULT
None
EXAMPLE
tell application "Scriptable Text Editor"
select paragraph 5 of document "Introduction"
copy
select paragraph 10 of document "New Introduction"
paste
end tell