google-apps-script-editor

How to copy a Google sheet and keep it's project triggers and scripts?

三世轮回 提交于 2021-02-10 16:16:00
问题 I currently have a Google Sheet that I'm using as a master template. That is, I'm making a copy of this template for every request. I want to add a Google App Script (which onEdit POSTs to my server when the sheeting is completed) to my master template that will be duplicated and run for every copy of this template. I've tried doing this from an admin account, however, the scripts don't seem to 'stick' with any of the templates. Is this possible? 回答1: Installable triggers can be attached to

How to copy a Google sheet and keep it's project triggers and scripts?

99封情书 提交于 2021-02-10 16:14:59
问题 I currently have a Google Sheet that I'm using as a master template. That is, I'm making a copy of this template for every request. I want to add a Google App Script (which onEdit POSTs to my server when the sheeting is completed) to my master template that will be duplicated and run for every copy of this template. I've tried doing this from an admin account, however, the scripts don't seem to 'stick' with any of the templates. Is this possible? 回答1: Installable triggers can be attached to

“com.au” string is displayed as “(class)” in Script Editor

我怕爱的太早我们不能终老 提交于 2021-02-02 03:45:10
问题 I need to store an Australian domain as a string. Australian domains end with ".com.au" Google Scripts seems to be displaying all instances of ".com.au" with "(class)". To reproduce, create a basic function in Google Apps Scripts as follows: function myFunction() { var x = "com.au"; console.log("x: " + x); var z = 1; //<--create break point here } Create a breakpoint at var z = 1 , and then debug the script. Actual Results: In the console (at breakpoint): x: (class) Expected Results: x: "com

“com.au” string is displayed as “(class)” in Script Editor

廉价感情. 提交于 2021-02-02 03:44:51
问题 I need to store an Australian domain as a string. Australian domains end with ".com.au" Google Scripts seems to be displaying all instances of ".com.au" with "(class)". To reproduce, create a basic function in Google Apps Scripts as follows: function myFunction() { var x = "com.au"; console.log("x: " + x); var z = 1; //<--create break point here } Create a breakpoint at var z = 1 , and then debug the script. Actual Results: In the console (at breakpoint): x: (class) Expected Results: x: "com

Google Sheet Script Editor - how would one format their numbers properly?

﹥>﹥吖頭↗ 提交于 2021-01-29 06:51:19
问题 So I`m trying to format my number to include percentage sign using script editor That "valuetoCheck" is the target i`m trying to change I am sending these emails to my colleagues when error rate is greater than 10 % That 'J1' is basically extracted from the sheet by using formula (=max(C:C)) and they are already in percent format in actual google sheet itself How should I format that J1 so that it can be shown with proper percent sign in the email? The current code generates the below message

Script for Selecting random data from a list on button press

ⅰ亾dé卋堺 提交于 2021-01-28 02:34:53
问题 I'm creating a spreadsheet which can automatically select random cell data from a particular column when I press a button. However, I cannot figure out the script. Thanks to some friends I've tried a few variations that involve using add-ons but ideally I don't want to use anything like that as it needs to be usable if people wanted to make a copy without the addons. What I'm looking to do is click a particular button and then the adjacent cell displays a random value from the data set given

Google Apps Script can't change timezone in project properties

早过忘川 提交于 2020-12-27 06:13:06
问题 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

Google Apps Script can't change timezone in project properties

北城以北 提交于 2020-12-27 06:12:42
问题 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

Google Apps Script can't change timezone in project properties

依然范特西╮ 提交于 2020-12-27 06:12:11
问题 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

Google Apps Script can't change timezone in project properties

拥有回忆 提交于 2020-12-27 06:11:57
问题 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