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!
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();
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();
Copy link to clipboard
Copied
Thanks a lot! It works perfectly.
Copy link to clipboard
Copied
this is awesome!