I wrote a simple Java (1.5)-based web app (deployed on a Tomcat-6-server), which communicates with an InDesign server using CORBA.
After I managed to add job options (stored in separate files within the filesystem), I'd like to do the same for Javascript files, which already work fine in the InDesign client. Unluckily I was unable to identify how to "hook" the scripts into my CORBA application, just like I did with job options.
Unfortunately, the official docs do not tell me how to do this. Can anyone offer help?
After digging through tons of documentation,(non-existent ;) ) javadocs and the official and unofficial adobe forums, I found a solution by myself.
The CORBA-application owns an undocumented method
doScript(arg0, arg1, arg2, arg3, arg4)
, which does indeed execute scripts. A code snippet like this executes javascript (and maybe other scripts just fine):Hope that anyone can confirm this. :)