google-apps-script-editor

Google Apps Script can't change timezone in project properties

限于喜欢 提交于 2020-12-27 06:11:48
问题 I can't change the timezone in one of my scripts using File->Properties. I can in my other scripts, they have a dropdown for timezone. Any idea why? 回答1: I'm not sure if this will help, but it might be worth a try: In the script editor go to View > Show project manifest. If you are the owner of the script, you should be able to edit the timezone in there. I have no experience editing that particular parameter as I have never needed to do that. However, I presume that the field is there for

Why Class Range getValues sometimes returns [[]] when chained to Class Sheet getActiveRange?

隐身守侯 提交于 2020-08-26 10:35:26
问题 Tl;Dr. Is a good practice chaining getValues() to Class Sheet getActiveRange() ? What could cause that sometimes returns [[]] instead of the expected values? NOTE: [[]] is what is being displayed in the Log / Script executions page. These "things" doesn't show quotation characters for strings. This is derived from Get selected values in row where I posted an answer with a couple of alternatives to get the values of the active range. Here I'm specifically asking for the reasons of the randomly