I know this is an old question. But still ... var ss = SpreadsheetApp.getActiveSpreadsheet ();
var sheet = ss.getSheets () [1];
I think this is the most convenient way, since you do not need to deal with the name, just indicate the sheet number ... [1] indicates the second sheet ... As you can guess, the numbering starts from 0 onwards ...
source share