Skip to main content
Inspiring
February 3, 2012
Answered

Tiling opened windows

  • February 3, 2012
  • 1 reply
  • 545 views

Is it possible to have a script tile all open windows for you?  Basically the same as going to Window > Arrange > Tile.  Additionally, if it could float the windows would help a lot as well (rather than keeping them tabbed).

This topic has been closed for replies.
Correct answer Paul Riggott

What you can do is make an action using Insert Menu Item and use the scriptlistner output. IE:

tileWindows();

function tileWindows() {
var desc4 = new ActionDescriptor();
var ref4 = new ActionReference();
ref4.putEnumerated( charIDToTypeID('Mn  '), charIDToTypeID('MnIt'), charIDToTypeID('Tile') );
desc4.putReference( charIDToTypeID('null'), ref4 );
executeAction( charIDToTypeID('slct'), desc4, DialogModes.NO );
};

1 reply

Paul Riggott
Paul RiggottCorrect answer
Inspiring
February 3, 2012

What you can do is make an action using Insert Menu Item and use the scriptlistner output. IE:

tileWindows();

function tileWindows() {
var desc4 = new ActionDescriptor();
var ref4 = new ActionReference();
ref4.putEnumerated( charIDToTypeID('Mn  '), charIDToTypeID('MnIt'), charIDToTypeID('Tile') );
desc4.putReference( charIDToTypeID('null'), ref4 );
executeAction( charIDToTypeID('slct'), desc4, DialogModes.NO );
};

dgolbergAuthor
Inspiring
February 3, 2012

That worked pretty well!  I don't get any output for the float option, but being able to put it into an action, I can just have it call that action when needed instead.  Thanks for the help Paul!