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?

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
Post a Comment