0
votes

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?

2

2 Answers

1
votes

This works for me:

var w = app.windows[0];
w.maximize();
0
votes

Object 'Window' only parent is 'Document'. It means you can't control the main app window using script (in Windows).