title: Make a copy of a spreadsheet while keeping protected ranges
body: <p>I hope this won't make me lose points but I have been looking everywhere and I can't find an answer:</p>
  
  <ol>
  <li>I have a spreadsheet with protected ranges. </li>
  <li>I make a copy of the spreadsheet. </li>
  <li>Protected ranges are gone in the copy.</li>
  </ol>
  
  <p>Is there a way of keeping the protected ranges in the new copy ?</p>
  
  <p>If it is not possible, maybe use</p>
  
  <pre><code>var protection = spreadsheet.getRange('D1:G9').protect();
  </code></pre>
  
  <p>on the new copy?</p>
  
  <p>But then I have no idea how to assign it to the new copy, as the script would be in the original spreadsheet and the copy of the spreadsheet has no Id before being created ...</p>