I've run a few stand-alone "hello world type scripts" but cannot get this to run:
The run button is greyed out.
code:
/**
* The event handler triggered when opening the spreadsheet.
* @param {Event} e The onOpen event.
* @see https://developers.google.com/apps-script/guides/triggers#onopene
*/
function onOpen(e) {
// Add a custom menu to the spreadsheet.
SpreadsheetApp.getUi() // Or DocumentApp, SlidesApp, or FormApp.
.createMenu('Custom Menu')
.addItem('First item', 'menuItem1')
.addToUi();
}
This was created from within Google Sheets, so that it's bound to a spreadsheet.
While I've run a few "hello world" stand-alone scripts, how is this bound script saved, deployed, and executed?