Positioning and Sizing the app.activeWindow?
I have an scriptUI modal dialog that I position to the top left corner of the screen. I extend the height of the dialog to the height of the screen.
I make the active document window full size with the following code:
var myMenuAction = app.menuActions.item("$ID/Consolidate All Windows");
myMenuAction.invoke();
after turning off the application frame and controls.
Setting the activeWindow bounds to the width of the dialog:
app.activeWindow.bounds.left = 237;
How to ensure that the main document window is sized and positioned?