Copy link to clipboard
Copied
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 🙂
Copy link to clipboard
Copied
Maybe this thread helps? https://community.adobe.com/t5/photoshop-ecosystem-discussions/passing-arguments-to-the-jsx-file-fro...
It was written for Photoshop but seems similar logic should apply. You'd use appRef.doScript(...
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Application.html#d1e42253__d1e45802
Copy link to clipboard
Copied
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.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more