TEToScrap
TEToScrap Copy TextEdit scrap to desk scrap
#include <TextEdit.h> TextEdit
returns an Error Code; 0=no error
TEToScrap copies the current contents of the TextEdit internal scrap (as
put there via TECut or TECopy) into the system (desk) scrap. This function
is not needed on systems 4.1 and later, since TextEdit now uses the desk
scrap.
Returns: an operating system Error Code; 0 means no error.

Notes: Use TEToScrap to store Cut or Copied TextEdit text into the
system (desk) scrap. This makes the text available to DAs and
subsequently- executed applications. You may wish to call this just before
terminating via ExitToShell, or just before you get deactivated by
Use TEFromScrap for the opposite; i.e., get anything put in the scrap by
another program into the TextEdit scrap so the user can paste it into the
edit record. Use TEScrapHandle to access the TextEdit internal scrap
directly.
TEToScrap is functionally equivalent to:
PutScrap( TEGetScrapLen(),'TEXT',*TEScrpHandle );