As far as I know, there is no comprehensive list of what actions can be sent to various objects. But I compiled the ones I have discovered for TextEditor objects:
Commands You can send to a text editor
The following commands can be sent to a text editor and will be recognized. There are certainly others that I have not discovered. Suppose you have a text editor named “TE”. Anything beginning with lv is my designation for a local variable name.
objectaction “TE”, “open” This statement opens the text editor, the same as clicking on it.
objectaction “TE”, " “close” This statement closes an open text editor. If not open, an error occurs.
objectaction “TE”, "cut " This statement removes the selected text from the text editor and places it t we on the clipboard.
objectaction “TE”, “copy” This statement copies the selected to the text to the clipboard.
objectaction “TE”, “paste” This statement pastes the text on the clipboard into the text editor if it is open. The paste will appear at the insertion point or, if no select point has been made, at the end of the text. If not open, and error will occur.
objectaction “TE”, “clear” This statement removes the selected text from the text editor. If the text editor is not open, an error occurs. If the text editor is open but nothing is selected, the statement does nothing.
objectaction “TE”, “getselection”,lvstart,lvend This statement gets the starting and ending positions of the selected text and assigns them to the variables. If the text editor is not open, an error occurs. If it is open but nothing is selected, the statement will return the position of the cursor for both start and end. Note, the first character of the text is in the zero position.
objectaction “TE”, “setselection”,lvstart,lvend This statement will select the text from the starting position to the ending position. If the text editor is not open, an error occurs. If the starting and ending positions are the same, the cursor moves to that position. If the selection is beyond the length of the text, the cursor will move to the end of the text. Note, the first character of the text is in the zero position.
objectaction “TE”, “gettext”, lvtext This statement gets the entire text of the text editor and places it in the variable. If the text editor is not open, an error occurs.
objectaction “TE”, “settext”, lvtext This statement replaces the text in the text editor with the text in the variable. If the text editor is not open, an error occurs.
objectaction “TE”, “inserttext”, lvtext This statement inserts the text at the insertion point in the text editor. If the text editor is not open, an error occurs.
objectaction “TE”, “getselectedtext”, lvtext This statement gets the selected text and places it in the variable. If the text editor is not open, an error occurs.