A function that was working is now showing the following error:
Logger: error=Error: Could not locate target object while calling method getPageElementRange on object with id 45.
Wondering if this is an intermittent bug that has arisen in a recent release of app script as my code has not changed?
Code that does not work is:
var presentation = SlidesApp.getActivePresentation();
var slide = presentation.getSelection().getCurrentPage().asSlide();
var arrPageElementsSelected = presentation.getSelection().getPageElementRange().getPageElements();
If I break this last line down into three lines, it still does not work:
var presentation = SlidesApp.getActivePresentation();
var slide = presentation.getSelection().getCurrentPage().asSlide();
var selection = presentation.getSelection();
var rangePageElements = selection.getPageElementRange();
var arrPageElementsSelected = rangePageElements.getPageElements();
Again, this code used to work up until the last few days. I am thinking that something has become broken in the Google App Script engine.
