Delayed Execution on Edit with Google Apps Script
问题 I have a relatively large spreadsheet (300 rows, 30 columns) that I color based on the values in the spreadsheet. I'm doing accessing the API minimally using only two accesses: getValues(...) to access all the values of the data range. setBackgrounds(...) to set all the backgrounds of the data range. This runs in about half a second or less. However, it gets in the way if I make it run on every edit using onEdit() , but I also don't want it to be updated at regular time intervals when I'm not