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

Bring to front InDesign doc CS4 js

Participant ,
Feb 16, 2010 Feb 16, 2010

I have a script for Indesign that opens Ps file runs ps script on it and then updates it in InDesign, and leaves Ps as an active program on the front, and I need for InDesign doc. to come forward as an active app. I've tried few lines and none of them work:


var myDoc = app.activeDocument;

myDoc.activate();

or
myDoc.open();

or
myDoc.windows = Window.BRINGTOFRONT ();

or
myDoc.windows = Window.bringToFront ();

or
myDoc.select (myNewFile); // select file in InDesign

Your help is highly appreciated.

Yulia

TOPICS
Scripting
1.8K
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
Engaged ,
Feb 16, 2010 Feb 16, 2010

Hi Yulia,

Not sure but try this:

app.activate();

Shonky

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 ,
Feb 17, 2010 Feb 17, 2010
LATEST

That's it, it works now. Thank you so much, Shonky.

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