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

VBScript or JavaScript to minimize InDesign application

Community Beginner ,
Jun 10, 2022 Jun 10, 2022

I'm running a basic InDesign Data Merge VBScript from within MS Access. All good except when I initiate using myInDesign = CreateObject ("InDesign.Application.2022")  the main "Welcome to InDesign" application window opens up maximised. Slightly annoying as I'd just like it to load minimised (or load and immediately minimise itself) and run in the background.

 

Is there a line of VBScript that would do this? (Or JavaScript alternately?)

 

TOPICS
Scripting
606
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

correct answers 1 Correct answer

Valorous Hero , Jun 10, 2022 Jun 10, 2022

And here's the VBS version:

Set myInDesign = CreateObject("InDesign.Application.2022")
myInDesign.LayoutWindows.Item(1).Minimize
Translate
Valorous Hero ,
Jun 10, 2022 Jun 10, 2022

In JavaScript you can minimize it like so:

app.layoutWindows[0].minimize();
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
Valorous Hero ,
Jun 10, 2022 Jun 10, 2022

And here's the VBS version:

Set myInDesign = CreateObject("InDesign.Application.2022")
myInDesign.LayoutWindows.Item(1).Minimize
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 11, 2022 Jun 11, 2022
LATEST

I'll also try this with ExtendScript:

app.generalPreferences.showStartWorkspace = false ;

 

Regards,
Uwe Laubender
( Adobe Community Professional )

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