Copy link to clipboard
Copied
Hello everyone,
I'm currently working on an ExtendScript for Adobe InDesign and need to programmatically retrieve the size and position of all visible panels. Despite my efforts, I haven't been able to find a straightforward way to access this information through the InDesign scripting API.
Here's what I've tried so far:
Does anyone know how to access the size and position of visible panels, or if there's an alternative method or workaround to achieve this?
Any guidance or examples would be greatly appreciated!
Thank you in advance for your help.
Best regards,
Aprking
Only by accessing configuration workspace files.
Copy link to clipboard
Copied
Only by accessing configuration workspace files.
Copy link to clipboard
Copied
In addition to @Robert at ID-Tasker's suggestion, you may be able to take a screenshot of your screen and let an image recognition AI framework analyze the screenshot and detect the panels for you. I have no idea what it takes and if it's worth the effort but I have no doubt that it's feasible.
Copy link to clipboard
Copied
Even if AI can get you positions - there is no way to "move" them back there - the only way is by reading and modifying workspace files...
... but I think there is still one problem - not sure if you can just switch workspaces - if you don't have to restart InDesign as well - which is rather impossible using JS alone...
Copy link to clipboard
Copied
Even if AI can get you positions - there is no way to "move" them back there...
By @Robert at ID-Tasker
Oh yeah for sure AI won't be able to move them. It's just @Aprking was only interested in retrieving their positions...
Copy link to clipboard
Copied
Copy link to clipboard
Copied
My idea is to use scripting to quickly switch between different panel positions and sizes. The solution provided by @Robert at ID-Tasker could partially address this issue, but scripting might be more flexible and faster. However, I feel that scripts may not be able to obtain this information
Thank you for your help.
Copy link to clipboard
Copied