Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop execution of Google Apps Script?

Can I use something like die() (in php) at my Apps Script application? I googled this question, the most acceptable solution is to throw new Error, but in this case I don't want to receive notification about script crash (as I not the only one who receives them).

I just want to terminate the script.

like image 323
Nikage Avatar asked Dec 22 '14 11:12

Nikage


People also ask

How do I stop app script notifications?

Here's how. Step 1: Open the email from [email protected]_ and click the link that says “Click here” as shown below. Step 2: On the triggers page, click the notifications link. Step 3: On the Execution failure notification screen, click the little x button and press OK.

What is SS in Google script?

var ss = SpreadsheetApp. This line retrieves the current spreadsheet that's active. Since you're only running this script when the spreadsheet you want to run the calculation on is active, it'll always get the correct spreadsheet. The sheet gets saved as an “object” variable called “ss”.


1 Answers

If you are in the code editor, and want to stop a script from running, you can click the "cancel" link in the toast display.

Or you can click "View" -> "Executions" from the code editor and then terminate the script.

You can also go directly to your executions at the link:

https://script.google.com/home/executions

Terminate Execution

like image 90
Alan Wells Avatar answered Oct 09 '22 22:10

Alan Wells