Open examples.docs.editText in the Object Database. Select any line of text in the window and then type and execute:
editMenu.cut ()
» true
Now you can scroll to another point in the document, click the insertion point there, and execute:
editMenu.paste ()
to confirm that the cut operation worked as expected. Before you leave the example, be sure to return the sample to its original condition with the Undo command.
Make sure you don't have anything selected in the frontmost editing window containing examples.docs.editText. Now type and execute:
editMenu.cut ()
» false
Notice the return value is different from the first example, above. Re-select the example text window. Execute:
editMenu.paste ()
Notice that the previous contents of the Clipboard are pasted into the document. Be sure to return the document to its original condition before proceeding.