Skip to main content
Participating Frequently
Apr 10, 2025 1:31 PM UTC
Question

Execute a jsx file on start

I would like to pass a jsx file as a paramter to indesign like C:\PROGRA~1\Adobe\ADOBEI~4\InDesign.exe -s "jobXml=D:\CheckX\job1.xml" -r "D:\CheckX\app.jsx"

The app.jsx gets the job1.xml like app.scriptArgs.getValue("jobXml"); and opens a template, and so on.

But Indesign messages "cannot open the file adobe indesign may not support the file format a plug in....."

Is there a solution to the above issue or could i open an Indesign 2025 object in C#

2 replies

Community Expert
Apr 11, 2025 4:47 AM UTC

I don't know if the -s option even exists. However, you can achieve this using a VBS which launches InDesign and executes the JSX using the doScript method. If you are trying to create some sort of a solution that would work without manual interaction with InDesign and launched remotely then InDesign Server is the application you need. So do check the EULA as righly pointed by @Robert at ID-Tasker 

-Manan

Translate
-Manan
Robert at ID-Tasker
Legend
Apr 10, 2025 1:34 PM UTC

You can't do it like that. 

 

But there are startup scripts: 

 

https://community.adobe.com/t5/indesign-discussions/run-script-automatically-when-opening-a-specific-indesign-document/td-p/8963587 

 

Or you would need a dedicated external tool that will control InDesign. 

 

But you're going too far into breaking EULA and Server territory... Desktop version of InDesign can't be used as a service. 

 

Translate