I create Add-on for google spreadsheets. Is there a way to create a Trigger programmatically tied to the given spreadsheet. In the documentation I found a description of two