bgmCoder
bgmCoder

Reputation: 6370

InDesign Script to Maximize Window

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

Answers (2)

mdomino
mdomino

Reputation: 1235

This works for me:

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

Upvotes: 1

Cashmirek
Cashmirek

Reputation: 269

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

Upvotes: 0

Related Questions