Simple Square Up script for Windows
I've been using a simple Applescript on my Mac installation of Indesign for years called Square Up CS. It's a very handy little script that defaults a selected object back to a simple retangle. I find it extraordinarily useful when I've bungled up a text box's properties by accidentally moving a corner or needing it to go back to a normal text box after editing its shape for some reason. I am switching over to a Windows computer full time and would dearly love to port this script over to my new computer, but I'm not a scripting guru and have no idea how to write this in Javascript. Anyone able to help?
tell application "Adobe InDesign CS6"
set {a, b, c, d} to «class gbnd» of selection
set «class plst» of «class ppth» 1 of selection to {{b, a}, {d, a}, {d, c}, {b, c}}
end tell