Skip to main content
ad_ind38716857
Known Participant
March 9, 2022
Question

How to executing JSX script through command line from another machine?

  • March 9, 2022
  • 1 reply
  • 700 views

Hi All,

 

I have installed the InDesign server and the JSX script placed in Windows.

Now I need to run the JSX script from another machine like Mac or Linux using SSH.

Could anyone help me with this?

 

Thanks.

This topic has been closed for replies.

1 reply

Community Expert
March 9, 2022

You can run InDesign Server to service SOAP requests and then make remote calls to the port that is servicing the SOAP requests. See the following discussion doing the same using node.js, it might give you an idea

https://stackoverflow.com/questions/37206149/node-soap-client-to-connect-to-indesign-server

-Manan

-Manan
Community Expert
March 9, 2022

IDS also comes with a command line utility called sampleclient that can send scripts for execution to an IDS instance launched to service SOAP requests. You can locate this utility in the IDS installation directory. The syntax to call the sampleclient utility is something like the following

sampleclient [-host hostID:port] [-server] scriptPath [arguments]

-Manan

-Manan
ad_ind38716857
Known Participant
March 9, 2022

Thank you Manan.

I tried calling the above command using sampleclient, it works in localhost/same machine.

If I call this command in Linux, it throws an error. Because sampleclient is not available in that machine.

Please advise.