selectedText

Returns the selection or the word under the cursor.

Syntax
aWindow selectedText
Return Value
  • The word under the cursor if the selection is empty,
  • the selected text if the selection does not contain any end-of-line,
  • an empty string otherwise.