Phrased another way, is there a way to:
- Create a new Google Spreadsheet (from the Google Drive API)
- And then create a Google Apps Script associated with that Google Spreadsheet programmatically
- And then programmatically activate the "On Edit" and "On Form Submit Triggers" to call various methods in the script? (this is the part I cannot figure out)
-OR- (as @JacobFlatter suggested)
- Manually create a spreadsheet with the desired script
- Use the Google Drive API to programmatically copy the spreadsheet (which copies with script with it as well)
- Somehow programmatically activate the "On Edit" and "On Form Submit Triggers" (which DO NOT copy over from copying the spreadsheet, this is the part I cannot figure out)