I have created a trigger for spreadsheet onEdit(). This works fine.
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?
Here's my code for setting up the trigger.
var ss = SpreadsheetApp.getActive();
ScriptApp.newTrigger("notify").forSpreadsheet(ss).onEdit().create();