Skip to main content
This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Ten A
Community Expert
Community Expert
Jun 16, 2016 11:44 PM UTC

You can use activate method like below:

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

Translate
karthickm50893796
Inspiring
Jun 20, 2016 5:19 AM UTC

Hi Ten A

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

Translate
Ten A
Community Expert
Community Expert
Jun 20, 2016 6:38 AM UTC

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();

Translate