Skip to main content
Inspiring
April 25, 2016
Answered

[JS SUI] If using a double monitor, how to set window show location?

  • April 25, 2016
  • 1 reply
  • 711 views

If using a double monitor, window(SUI) is displayed on the main monitor.

I want to display the window(SUI) based on the InDesign location.

How to get InDesign location?

Thanks.

This topic has been closed for replies.
Correct answer Vamitul

app.activeWindow.bounds will give you the coordinates of the front-most window in Indesign. $.screens will give you information about the displays. You can use these two properties to infer the position of indesign.

1 reply

Vamitul
VamitulCorrect answer
Legend
April 25, 2016

app.activeWindow.bounds will give you the coordinates of the front-most window in Indesign. $.screens will give you information about the displays. You can use these two properties to infer the position of indesign.

Community Expert
April 25, 2016

Hi Vamitul,

on Mac OSX with the application frame set (in contrast to the free floating windows), app.activeWindow.bounds is not working as expected. It will return the same values for all windows. And that are the values for the application frame window.
( Just a note )

It's great, if on Windows app.activeWindow.bounds is working as expected.

Uwe

Vamitul
Legend
April 25, 2016

Uwe, it is working correctly on OSX, but unexpected: when you enable the application frame Indesign literally only has one window, the application frame.