Skip to main content
Inspiring
October 1, 2016
Question

Window Arrange Tile All Vertically

  • October 1, 2016
  • 1 reply
  • 2473 views

I use the Window Arrange Tile All Vertically menu command and Window Arrange Consolidate All to Tabs menu command to compare files side by side.

Each menu command has its own keyboard short cut.

Is it possible to create a script that toggle between these two menu commands?

When the scrip runs it check if the state of the open documents.

If in tile mode

     run consolidate all to tabs

if in tabs mode

     run tile mode

Can this be scripted?

This topic has been closed for replies.

1 reply

JJMack
Community Expert
Community Expert
October 2, 2016

Get the menu item ID "tileVertically" , "consolidateAllTabs" and use

runMenuItem(menuID);

I do not know how to test it one is editing in tabs or flooding windows and if in tabs what the current arrangement is.   You can write a script to toggle between the two. If the current state is unknown set one and record the state so you can toggle the next time. Each time you set one you record the state in an environment variable or a custom Photoshop option.

JJMack
Inspiring
October 2, 2016

Is it possible to check programmatically how the open documents are displayed in the application frame?

For instance Tab order vs Tile vertically order/

JJMack
Community Expert
Community Expert
October 2, 2016

I do not know.  I use windows and on windows image windows can be dragged outside  of Photoshop window. moved to other displays also. I can hat Photoshop editing image on all my displays.   I do not know if you can even find out what display an image is on even.  From system info you can find out how many display there are and the display UI sizes. If you can find our if 2x UI is set you can calculate the actual displays sizes.  I think it may not be possible to find out  zoom level and locations etc.  I know you can not set a zoom percentage.  However, you can use menu items like zoom in/out etc

JJMack