Highlighted

Script For Navigate to Next Document

New Here ,
Nov 22, 2018

Copy link to clipboard

Copied

Hi,

When navigating to next document using keyboard shortcut Ctrl + F6 it works fine.

But what i need is record this function in action.

Is there any script method i can use to do this?

Thanks!

Adobe Community Professional
Correct answer by CarlosCanto | Adobe Community Professional

use

app.documents[1].activate();

please note that documents index get re-generated all the time. documents[0] is always the active document. You would need to get a list of all open documents names and activate them on demand.

or if you want to loop through all documents you could use

app.documents[app.documents.length-1].activate();

Topics

Scripting

Views

257

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Script For Navigate to Next Document

New Here ,
Nov 22, 2018

Copy link to clipboard

Copied

Hi,

When navigating to next document using keyboard shortcut Ctrl + F6 it works fine.

But what i need is record this function in action.

Is there any script method i can use to do this?

Thanks!

Adobe Community Professional
Correct answer by CarlosCanto | Adobe Community Professional

use

app.documents[1].activate();

please note that documents index get re-generated all the time. documents[0] is always the active document. You would need to get a list of all open documents names and activate them on demand.

or if you want to loop through all documents you could use

app.documents[app.documents.length-1].activate();

Topics

Scripting

Views

258

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Nov 22, 2018

Copy link to clipboard

Copied

use

app.documents[1].activate();

please note that documents index get re-generated all the time. documents[0] is always the active document. You would need to get a list of all open documents names and activate them on demand.

or if you want to loop through all documents you could use

app.documents[app.documents.length-1].activate();

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Nov 24, 2018

Copy link to clipboard

Copied

Thanks a lot! It works perfectly.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Explorer ,
Jul 10, 2020

Copy link to clipboard

Copied

this is awesome!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...