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

How to Switch illustrator Documents using Script

Participant ,
Jun 15, 2016 Jun 15, 2016

How to Switch illustrator Documents using Script for EX: Command + Tab in mac | Control + Tab in PC

Screen Shot 2016-06-15 at 6.35.21 PM.png

Screen Shot 2016-06-15 at 6.35.44 PM.png

TOPICS
Scripting
709
Translate
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
Adobe
Community Expert ,
Jun 16, 2016 Jun 16, 2016

You can use activate method like below:

app.documents.getByName("Untitled-2").activate();

Translate
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
Participant ,
Jun 19, 2016 Jun 19, 2016

Hi Ten A

I want to switch any file name documents not any particular Untitled-2 document.......

Translate
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
Community Expert ,
Jun 19, 2016 Jun 19, 2016
LATEST

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();

Translate
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