Reputation: 6370
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?
Upvotes: 0
Views: 526
Reputation: 269
Object 'Window' only parent is 'Document'. It means you can't control the main app window using script (in Windows).
Upvotes: 0