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

Soap run UXP script

Community Beginner ,
Mar 10, 2023 Mar 10, 2023

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?

TOPICS
Scripting , UXP Scripting
1.1K
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

correct answers 1 Correct answer

New Here , Mar 15, 2023 Mar 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

Translate
New Here ,
Mar 15, 2023 Mar 15, 2023

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

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
New Here ,
Mar 15, 2023 Mar 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

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 Beginner ,
Mar 16, 2023 Mar 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"?

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
Explorer ,
Oct 01, 2024 Oct 01, 2024
LATEST

Hi Jakob,

You can use script file as below:

RunScriptParameters runScriptParams = new RunScriptParameters();
runScriptParams.setScriptLanguage("UXPScript");
runScriptParams.setScriptFile(scriptFile);

 

Sumit

 

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