title: Google Script: returning text from gsheet script
body: <p>I have a Google Sheet containing a script. This script creates some text which should be:</p>
  
  <ul>
  <li>copied to clipboard or</li>
  <li>presented in a web browser (and then I'll copy it to clipboard
  manually) or</li>
  <li>saved to a specific file on hard drive (and then I'll open the file
  and copy the text to clipboard)</li>
  </ul>
  
  <p>My current solution, creating a new gdoc file with the text, (and opening it and copying the text to clipboard each time the script runs) is rather slow and creates plenty of docs which need to be deleted later.</p>
  
  <p>I tried to write <code>return ContentService.createPlainTextOutput(txt);</code> in the gsheet script, but this results in error "TypeError: Cannot find function createPlainTextOutput in object ContentService". </p>