title: Create and set file extension using google apps script
body: <p>Is it possible to set/force the file extension for a new file created via Google Apps Script?</p>
  
  <p>I am running the following:</p>
  
  <pre><code>var c = DriveApp.createFile(getBlob());
  c.setName("test.lic");
  </code></pre>
  
  <p>But the file always has a .bin extension (i.e. it becomes test.lic.bin when downloaded).</p>