Script For Navigate to Next Document

New Here ,
Nov 22, 2018 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!

TOPICS
Scripting

Views

347

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
community guidelines

correct answers 1 Correct Answer

Adobe Community Professional , Nov 22, 2018 Nov 22, 2018
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 useapp.documents[app.documents.length-1].activate();

Likes

Translate

Translate
Adobe Community Professional ,
Nov 22, 2018 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
community guidelines
New Here ,
Nov 24, 2018 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
community guidelines
Explorer ,
Jul 10, 2020 Jul 10, 2020

Copy link to clipboard

Copied

LATEST

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
community guidelines