LayoutWindow to get and set view bounds
With LayoutWindow.bounds I can get and set the bounds of the window, but I want to get and set the bounds of the view port, ie. what the user sees inside the window. If view port bounds is too difficult, then just a centerOfView coordinate would be fine—combined with the already-available zoom value, that would achieve most things I'd need.
For what it's worth, it is possible to do what I want in Illustrator.
-
Rudi W. commented
I second Mark's request 100% - often I need to know what portion of a page a user is actually looking at. InDesign itself must know it, of course, it just doesn't seem to be part of the scripting API - like many other useful things, too, unfortunately.
Thanks!
Rudi -
Nicolas Carrieres commented
I've spend the last week looking for a way to do exactly what m1b is describing, being able to reference the active viewport would mean that one can create a script to easily compare several documents without needing to export the files on pdf first to check them in Acrobat.