title: Google Scripts - Creating a script that runs every seconds
body: <p>I am trying to create a script that runs every 10 seconds in google scripts, but I haven't found any method to do that,</p>
  
  <p>My Code is running every minute:</p>
  
  <pre><code>  ScriptApp.newTrigger("refresh") 
    .timeBased()
    .everyMinutes(1)
    .create();
  </code></pre>
  
  <p>I've tried this javascript's setInterval method:</p>
  
  <pre><code>setInterval(function(){ /*do*/ }, 10000);
  </code></pre>
  
  <p>However, set interval is not defined.</p>
  
  <p>Thanks for any help.</p>