TEFromScrap
TEFromScrap Copy desk scrap to TextEdit scrap
#include <TextEdit.h> TextEdit
returns an Error Code; 0=no error
TEFromScrap copies the contents of the system (desk) scrap into the
TextEdit internal scrap (for use by TEPaste). This is not needed on
systems later than version 4.1, since the new TERec, obtained via a call to
TEStylNew now uses the desk scrap.
Returns: an operating system Error Code; 0 means no error.

Notes: Use TEFromScrap to access text from the desk scrap (e.g., if
a DA, or a previously- executed application put something there for you).
You may wish to call this soon after your application starts or as soon as you
get reactivated by MultiFinder. After calling, use TEGetScrapLen to find
out if you got anything.
Use TEToScrap for the opposite; i.e., store some previously Cut or Copied
TextEdit text into the desk scrap for retrieval by another program. Use
TEScrapHandle to access the TextEdit internal scrap directly.
This function is equivalent to calling GetScrap(...,'TEXT',...) and saving
the result in the global variable TEScrpHandle (though doing that is not
recommended).