Script to convert shape rounded rectangle to rectangle
I have an inDesign file with thousands of pages. On each page is a background object which by default has rounded corners (a rounded rectangle). I would like to create a script which would go through all of the pages and change this object to full corners (a rectangle). Obviously, I can do this one by one by selecting the object and then clicking on Convert Shape Rectangle within the properties tab, but I haven't been able to find the correct object/method within scripting to make this happen.
Please note for argument sake, assume that I cannot use a single master page, change that, and have it apply to all pages.
Could someone provide a small sample script that could provide this ability? Thank you in advance for any assitance provided !
