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

Run a jsx script with arguments via VBScript in InDesign Window

New Here ,
Jul 11, 2023 Jul 11, 2023

Hi guys,

 

How can I pass arguments in .jsx file inside VBScript in InDesign.

If VBScrip not able to pass aguments to jsx file. What should I do? 

 

Set myInDesign = CreateObject("InDesign.Application.2023")
myJavaScript = "path-to-my-javescript-file" 
myInDesign.DoScript  myJavaScript, 1246973031

 

Thank you so much for supporting 🙂 

TOPICS
How to , Scripting , UXP Scripting
292
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 ,
Jul 11, 2023 Jul 11, 2023
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
LEGEND ,
Jul 12, 2023 Jul 12, 2023
LATEST

You can either build a JavaScript file and use filepath as an argument for the DoScript or pass contents of the JavaScript code as a String variable - put the value(s) of your arguments directly in the JS code.

 

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