Skip to main content
This topic has been closed for replies.

1 reply

Ten A
Community Expert
Community Expert
June 16, 2016

You can use activate method like below:

app.documents.getByName("Untitled-2").activate();

karthickm50893796
Inspiring
June 20, 2016

Hi Ten A

I want to switch any file name documents not any particular Untitled-2 document.......

Ten A
Community Expert
Community Expert
June 20, 2016

You must replace documents name.

However, you can write like below:

//To switch focus 2nd document

var n = 1; //(0 as first document)

app.document.activate();