title: set Notification forspreadsheet trigger in google apps script onEdit()
body: <p>I have created a trigger for spreadsheet onEdit(). This works fine.</p>
  
  <p>What I want to achieve: When I set the trigger programmatically, by default the notification is set to "Daily" and "around 3 am". How do I set this to "immediately" using script?</p>
  
  <p>Here's my code for setting up the trigger.</p>
  
  <pre><code>var ss = SpreadsheetApp.getActive();
  ScriptApp.newTrigger("notify").forSpreadsheet(ss).onEdit().create();
  </code></pre>