var myObj = app.selection; myObj.rotationAngle = 45;
or, if you want just to rotate selection, and you dont need variable for next operation
app.selection.rotationAngle = 45;
Thanks again tomaxxi! That was my last major hurdle as a newby. It's amazing how the simple ones seem so hard to find. Thanks again!!!
Is there a way to set the reference point to middle? I noticed that it will
rotate based on the current selection of reference point.
Yeah, you can!
app.activeWindow.transformReferencePoint = AnchorPoint.CENTER_ANCHOR
or you can check my InDesign Scripting Snippets blog
where I explained how it works.
I found this:
app.layoutWindows.transformReferencePoint = AnchorPoint.CENTER_ANCHOR;
it seems to work!
wow, that was fast! before I could even post my message you had already responded. :-)
Thanks again! Been having fun - especially putting them all together and making one major script that works exactly as it should. Now I have to put it to the ultimate test in reality. :-)