Copy link to clipboard
Copied
I tried running the HelloWorld.idjs example from your-first-uxp-script on a local installed InDesign server via soap, but only got the following error:
<IDSP:RunScriptResponse>
<errorNumber>1</errorNumber>
<scriptResult></scriptResult>
</IDSP:RunScriptResponse>My request:
<runScriptParameters>
<scriptLanguage>UXPScript</scriptLanguage>
<scriptFile>C:\\projects\\InDesign_Scripts\\Scripts Panel\\JF_Scripts\\UXP\\HelloWorld.idjs</scriptFile>
<scriptArgs>
<name>test</name>
<value>value</value>
</scriptArgs>
</runScriptParameters>I have done something wrong?
Jacob, with a little additional effort I was able to get the HelloWorld.idjs to execute on the server. It required placing the script on a local directory of the server "C:\Adobe\Scripts\" and executing this from the command line:
"C:\Program Files\Adobe\Adobe InDesign Server 2023\sampleclient.exe" -host localhost:<your_port_number> c:\adobe\scripts\helloworld.idjs
Copy link to clipboard
Copied
Having the same experience as Jacob. Can we please get some support from Adobe here???
Copy link to clipboard
Copied
Jacob, with a little additional effort I was able to get the HelloWorld.idjs to execute on the server. It required placing the script on a local directory of the server "C:\Adobe\Scripts\" and executing this from the command line:
"C:\Program Files\Adobe\Adobe InDesign Server 2023\sampleclient.exe" -host localhost:<your_port_number> c:\adobe\scripts\helloworld.idjs
Copy link to clipboard
Copied
Thanks that worked.
It looks like you can only run UXPScript with the script content in the "scriptText" tag, like the sampleclient.exe does.
Is there a way to get it to work with "scriptFile"?
Copy link to clipboard
Copied
Hi Jakob,
You can use script file as below:
RunScriptParameters runScriptParams = new RunScriptParameters();
runScriptParams.setScriptLanguage("UXPScript");
runScriptParams.setScriptFile(scriptFile);
Sumit
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more