• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

631

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

Community Expert , 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 use

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

Votes

Translate

Translate
Adobe
Community Expert ,
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();

Votes

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.

Votes

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
Guest
Jul 10, 2020 Jul 10, 2020

Copy link to clipboard

Copied

LATEST

this is awesome!

Votes

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