Open examples.docs.editText in the Object Database. Select any line of text in the window and then type and execute:
editMenu.copy ()
» true
Scroll to another place in the sample text window, click the insertion point there, and execute:
editMenu.paste ()
» true
to confirm that the copy process worked as you expected.
Make sure you don't have anything selected in the frontmost editing window containing examples.docs.editText. Now type and execute:
editMenu.copy ()
» false // Notice the return value is different from the first example, above.
Re-select the example text window. Execute:
editMenu.paste ()
» true
Notice that the previous contents of the Clipboard are pasted into the document.