Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

How to make at startup script that fits spread on open

$
0
0

Hi there,

Does anyone know how to make a startup script for InD CS6 that fit spread too screen when document open?

I've tried this and it works but I've get a dialog that says "Object is not valid":

 

#targetengine "session"

 

main();

function main(){

var myEventListener = app.eventListeners.add("afterOpen", excuteScript);

}

 

function excuteScript(){

var myD = app.documents[0];

 

app.layoutWindows[0].zoom(ZoomOptions.FIT_SPREAD);

 

}


Viewing all articles
Browse latest Browse all 15932

Trending Articles