How do I get the current file's name in Google Script? -


i want send automated emails script of spreadsheet. in title of these, want file's name (in example, "my workbook", not "sheet1") in subject of email. how name of file in/from script running?

enter image description here

i hoping file object spreadsheetapp object, doesn't offer that.

.getactive().getname(); pretty effective.

spreadsheetapp doesn't refer specific spreadsheet, need specify 1 name, hence getactive().


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -