Copy link to clipboard
Copied
How to Switch illustrator Documents using Script for EX: Command + Tab in mac | Control + Tab in PC
Copy link to clipboard
Copied
You can use activate method like below:
app.documents.getByName("Untitled-2").activate();
Copy link to clipboard
Copied
Hi Ten A
I want to switch any file name documents not any particular Untitled-2 document.......
Copy link to clipboard
Copied
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();
Find more inspiration, events, and resources on the new Adobe Community
Explore Now