Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Showing progress in Google scripts [duplicate]

I want to show progress of a lengthy script to the user. Ideally I want to use the yellow toast that comes up saying running script cancel dismiss when running a Google script

I know u can throw custom error but how can throw custom messages to this yellow box.

Or another alternative will do as well. Not msgbox as that stops the script.

like image 681
mfaiz Avatar asked Jun 26 '26 01:06

mfaiz


1 Answers

I ended up using the spreadsheet class of toast:

SpreadsheetApp.getActiveSpreadsheet().toast('message')

like image 92
mfaiz Avatar answered Jun 28 '26 18:06

mfaiz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!