TEPaste
TEPaste
Insert TextEdit scrap into edit record System 4.1+) into the edit record at the current insertion point. If a selection
range exists, it is replaced by the contents of the scrap. With a style-aware
edit record, you should use TEStylPaste if you want to apply style formatting to the text.
hTE is a handle obtained via TENew (old style TextEdit record) or TEStylNew (new style TextEdit record). It leads to a variable-length TERec structure and identifies the edit record to be affected by this change.
Notes: After the operation, the insertion point is positioned immediately to the right of the last character of the inserted text. The text is redrawn if
necessary.
the scrap.
With older systems, you may need to use TEFromScrap to copy the data in the TextEdit scrap. Newer systems use the desk scrap.