In my Adobe InDesign I have a startup script where I want to automatically maximize the entire InDesign window.
This says I have an invalid object.
var window = app.documents[0].layoutWindows[0];
window.maximize();
How do I make this work?
In my Adobe InDesign I have a startup script where I want to automatically maximize the entire InDesign window.
This says I have an invalid object.
var window = app.documents[0].layoutWindows[0];
window.maximize();
How do I make this work?
This works for me:
var w = app.windows[0];
w.maximize();
Object 'Window' only parent is 'Document'. It means you can't control the main app window using script (in Windows).