In the InDesign Application it is so easy to create a new rectangle or a text frame, it's only a few clicks. As a programmer I sometimes want to see all the dozens of property values that are currently set for an object. But wouldn't it be fantastic to see the whole JavaScript code that creates the identical InDesign item, that I created with a few mouse clicks?

Our Script analyses the active InDesign document and reverse engineers a couple of object types to fully correct JavaScript code.

Download script here: InDesign Script with description and sample

Create a new document with a few rectangles, oveals, layers, etc and run the script, to see what object properties can have which values or enumeration types.