I have been calling in the active things either by event.source.getActive
... or by SpreadsheetApp.getActive
... . Which is more proper? I have pulled these from multiple sources, so sometimes in my script I use one over the other. I feel like I have tried to use them interchangeably, but things went wrong, (this was early on so I gave up). But I am wondering which way should be best, or do I really need them both?
var ss = SpreadsheetApp.getActiveSpreadsheet();//ss is active spreadhseet
var s = event.source.getActiveSheet();//s is active sheet withing spreadsheet
var r = event.source.getActiveRange();//r is active cell
var sheetAppActive = SpreadsheetApp.getActiveSheet();//sheetAppActive is active sheet within spreadsheet
var rangeAppActive = sheetAppActive.getActiveCell(); //rangeAppActive is the active cell