jkabot
10/26/2018, 2:40 PMdo {
results = osearch.run().getRange({
looks like it runs the search each iteration, rather than just running the search once
I think the best bet is to require the top-level function into the script debugger and step through it