title: What is the scope/persistence of an object activated by a triggered function in Google Spreadsheet API?
body: <p>Google Spreadsheet API has various methods for setting the active Spreadsheet, Sheet, Range, column, and so forth, programmatically. These methods can be used from triggered scripts that run when the UI isn't open. However, I don't see any documentation explaining how long this activation persists. </p>
  
  <p>Experience and intuition suggests that when, say, a spreadsheet is activated programmatically, it is "active" in the global scope, and will stay active until the original function call ends. However, I am afraid I will be surprised by some edge case if this is not exactly right.</p>
  
  <p>For example, if I have a bound script that is triggered to run on Friday, and it calls another bound script which activates a spreadsheet, it seems that the spreadsheet remains active after that second script closes, and another script call can still "getActiveSpreadsheet". However, if the triggered script terminates, and another script is triggered 5 minutes later, you would have to activate it by ID again.</p>
  
  <p>Is there any documentation, or is my understanding complete?</p>
  
  <p>As an example, consider a case where one Google Service's API is triggered by the result of a change caused by a triggered function in a separate service.</p>