Trying to replace image with same image

86 views
Skip to first unread message

Kaitlyn Lardeo

unread,
Oct 8, 2022, 4:21:44 AM10/8/22
to Google Apps Script Community
Hey everyone,

I'm attempting to replace an image with the same exact image each time the script it run. The first time, I have it inserting the image, but since I have other text boxes and shapes being inserted, it gets overlapped. I have a way where I delete all shapes and text boxes before replacing them every time the script is run, but I don't think there's a way to delete images currently (unless I'm wrong, please let me know!!! This is what I have currently:

 var image = SlidesApp.getActivePresentation().getSelection().getCurrentPage();
        var slides = SlidesApp.getActivePresentation().getSlides();
          slides.forEach(function(slide) {
            var images = slide.getImages();

Thanks!
Reply all
Reply to author
Forward
0 new messages