Script to convert all master page's background images properties-covert shape-rectangles
I have an inDesign indd file that contains thousands of individual pages, that all inherit specific details from approximately 100+ master pages. By default, all of the master pages have a background image that is the exact size of the page, and has rounded rectangles.
I am trying to find a way to write a script that will change all of the master page's background images from rounded rectangles to rectangles, which in turn should make all of the pages that inherit from them change.
Obviously, doing this one by one is easy enough, especially if there are only one or two master pages. By I have some files that have hundreds of master pages.
I have written plenty of scripts in the past that affect my normal pages, but I can't find anyway to automatically change master pages.
I tried using find-change queries, but while they can make these kinds of changes on the normal pages, they end up changing ALL objects from rounded rectangles to rectangles, where I only want ONE specific object changed. This is why I am trying to get it to work for master pages, as there is ONLY ONE object that would be changed.
Any insight would be appreciated.