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

Extendscript: Set window focus on Illustrator

Explorer ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

How do I change the focus from any window to Illustrator using Extendscript? I have buttons in a panel that run scripts. When I click on them the current window focus changes to that panel. Unfortunately this means I have to manually click back into Illustrator to continue using Illustrator, which can be quite annoying.

TOPICS
Scripting

Views

584

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 , Jan 11, 2021 Jan 11, 2021

try this

 

BridgeTalk.bringToFront("illustrator")

Votes

Translate

Translate
Adobe
Community Expert ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

try this

 

BridgeTalk.bringToFront("illustrator")

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
Explorer ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

Works perfectly. Thanks!

 

How did you know about this?

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
Community Expert ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

LATEST

It's in the Illustrator Tools Guide.pdf

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
Valorous Hero ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

At one time I thought that creating a new palette and immediately closing it would work, but I think what ended up happening was that then I had both the (ScriptUI-based) script palette and Illustrator both out of focus! Let us know if Carlos' solution works for you.

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
Community Expert ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

oh good point, closing the window might yield a different result. 

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