My state of information:
a) RCHL cannot process .jsx scripts from the commandline.
b) RoboHTML cannot export like RCHL from .jsx scripts
But I need to process a .jsx script before I can export to CHM or whatever else format.
Why I cannot e.g. export via an .jsx from RoboHTML like RCHL is doing?
You can start RoboHelp so that it automatically loads a script:
"C:\Program Files (x86)\Adobe\Adobe RoboHelp 11\RoboHTML\RoboHTML.exe" -x "C:\Users\wweelden\AppData\Roaming\Adobe\RoboHTML\11.00\Scripts\createHelpDelivery.jsx"
I have all the data available in the script: it opens the project, makes any modifications, generates the output and publishes it as a zip in the correct location. Would that be sufficient for your requirements?
But how can I create an output from my script like:
rchl.exe "myproject/myproject.xpj" -l "Microsoft HTML Help"
I could use 'RoboHelp.executeCommandline()' but I'm not sure if this even works within RH?
You can parse the script as parameter and the project to be opened as well. With RoboHelp.getCommendLineArg(int) you can get a command line parameter that is passed to RoboHelp. That way you can still tell the project and layout to be generated and handle it in the script.
I know there is a getCommendLineArg() function, but shall I use executeCommandline() with "rchl.exe" from my script? I assume also that the project which I want to process has to be closed before..
In that case, you will have to close the project first. But you can also execute the output from the script without closing. If you get the required SSL (RoboHelp.project.SSLManager), you can execute the SSL from there and keep running the script.
this is exactly I was looking for! Thank you!! Problem solved!