title: Create time trigger with Google Script and spreadsheet
body: <p>I want to create a simple time trigger to my sheet using Google Script, I do all like described in <a href="https://developers.google.com/apps-script/guides/triggers/installable#managing_triggers_programmatically" rel="nofollow">docs</a>, but when I call function I getting error:</p>
  
  <pre><code>Google Apps: You do not have permission to call newTrigger
  </code></pre>
  
  <p>I try to find solution in Internet but didn't get any results. Can somebody help me? Thanks!</p>
  
  <p>P.S. My code: </p>
  
  <pre><code> ScriptApp.newTrigger("consolius")
     .timeBased()
     .everyMinutes(1)
     .create();
  
  function consolius() {
     SpreadsheetApp.getUi().alert('Hello, world!');
  }
  </code></pre>