Skip to main content
Participant
July 11, 2023
Question

Run a jsx script with arguments via VBScript in InDesign Window

  • July 11, 2023
  • 2 replies
  • 300 views

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 🙂 

This topic has been closed for replies.

2 replies

Robert at ID-Tasker
Legend
July 12, 2023

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.

 

brian_p_dts
Community Expert
Community Expert
July 11, 2023