control document window size/position?
Is there any way to us javascript (or anything else) to control the document window size (33.3%, 66.6%, etc) or position on-screen?
Is there any way to us javascript (or anything else) to control the document window size (33.3%, 66.6%, etc) or position on-screen?
As for the zoom:
// by michael l hale;
function setZoom( zoom ) {// as percent
cTID = function(s) { return app.charIDToTypeID(s); }; // from xbytor
var docRes = activeDocument.resolution;
activeDocument.resizeImage( undefined, undefined, 72/(zoom/100), ResampleMethod.NONE );
var desc = new ActionDescriptor();
var ref = new ActionReference();
ref.putEnumerated( cTID( "Mn " ), cTID( "MnIt" ), cTID( 'PrnS' ) );
desc.putReference( cTID( "null" ), ref );
executeAction( cTID( "slct" ), desc, DialogModes.NO );
activeDocument.resizeImage( undefined, undefined, docRes, ResampleMethod.NONE );
};
app.activeDocument.suspendHistory ("zoom", "setZoom( 65 )");
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.