Skip to main content
Participating Frequently
April 10, 2025
Question

Execute a jsx file on start

  • April 10, 2025
  • 2 replies
  • 228 views

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
April 11, 2025

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

-Manan
Robert at ID-Tasker
Legend
April 10, 2025

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.