Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Is it possible to check programmatically how the open documents are displayed in the application frame?
For instance Tab order vs Tile vertically order/
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
OK thanks for your input.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now