Copy link to clipboard
Copied
I have had an issue (as others) with sometimes the whole InDesign is not drawn on the display. Mostly when I have switched external monitors etc...
Here is a small script that hopefully others will find useful to re-size either the Application Frame, or the Document window into the Primary display.
Assigning a keyboard shortcut to the script works a treat!
Hopefully others will find it useful.
try{
for(var i = 0; i<=$.screens.length-1; i++){
if($.screens.primary == true){
var s = $.screens;
break;
}
}
var w = app.activeWindow;
if (w.__proto__.constructor.name == "LayoutWindow"){
if(app.generalPreferences.useApplicationFrame == true){
w.bounds = [s.top,s.left,s.bottom,s.right];
}
else{
w.bounds = [s.top+30,s.left+45,s.bottom+22,s.right];
}
}
}
catch(e){
alert("cannot resize this window\nError is " + e);
}
Its not perfect, and I am sure wont work for everyone, but worth a try!
Copy link to clipboard
Copied
Thanks for posting this Roy,
I have been looking for a solution to this for a quite while and always found the same answers, that it can't be done without 3rd party software which I didn't want to install.
This has worked perfectly on my Mac, my biggest problem was if I opened more than one document the bottom right handle drops off of the screen and it's a pain to get back, this has solved it.
The other really handy part of this is that it can be altered to fit around workspaces that are set up in InDesign, I have 3 rows of these on the right hand side of my screen permanently open so have to change the window position constantly.
Thank you again, this has solved a small but annoying problem,
Bren