Skip to main content
Inspiring
March 10, 2023
Answered

Soap run UXP script

  • March 10, 2023
  • 1 reply
  • 1100 views

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?

This topic has been closed for replies.
Correct answer ilxDEV

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

1 reply

Participant
March 15, 2023

Having the same experience as Jacob. Can we please get some support from Adobe here???

ilxDEVCorrect answer
Participant
March 15, 2023

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

Inspiring
March 16, 2023

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"?