Skip to main content
Inspiring
August 21, 2018
Question

Get the number of Window

  • August 21, 2018
  • 2 replies
  • 1207 views

Another difficult one :  get the number of "new window" for a document.

Is it possible ?

This topic has been closed for replies.

2 replies

Legend
August 21, 2018

In CC2018, this is possible through the "menuBarInfo" property, but only if the document name is unique and not too long. In CS6, nothing will come out at all.

Inspiring
August 21, 2018

For my part, since I'm lost somwhere in the past (CS6) , well, I will have to deal with the impossibility to get the info. Wish we had another solution than the cloud ! (yeah, i know it wil never happens ! ... who says 'Never says never" ? )

Maybe this kind of info (number of window inside an application) can be reached with another programming language ?

Kukurykus
Legend
August 21, 2018

I already gave you example how to do it with other language, why you say it's impossible?

Kukurykus
Legend
August 21, 2018

On the condition you want in contrary to Javascript rule first document had number not 0, but 1:

if (len = (doc = documents).length) {for(i = 0; i < len;) if (activeDocument == doc[i++]) alert(i)}

Inspiring
August 21, 2018

Sorry, there is clearly a misundertood...I would like to have the possibility to know the number of window (via menu Window - Arrange - New Window for...) and not the number of opened document.

Kukurykus
Legend
August 21, 2018

They have the same number, new created document and new window for currently opened document of course only when you check index of document, so not the Window. I don't see there code that can access new Window for other document untill you are Windows user and use autohotkey.com, so similary like in this theard:Access to document windows, tabs