I wrote a simple Java (1.5)-based web app (deployed on a Tomcat-6-server), which communicates with an InDesign server using CORBA.
Unfortunately, the official docs do not tell me how to do this. Can anyone offer help?
many thanks for hinting to the correct method, unluckily I suffer the next problem, there seems to be no javadoc on
what I have to stick into it. Can you provide a simple example?
String scriptPath = "your_script_file_path"
VariableType file = VariableTypeUtils.createFile(scriptPath);
// ScriptLanguage.APPLESCRIPT_LANGUAGE - 1095978087
// ScriptLanguage.UNKNOWN - 1433299822
OptScriptLanguageEnum scriptType = OptArg.makeScriptLanguageEnum(1246973031);
// add values if you want to send arguments to the script
VariableType params = new VariableType;
params = VariableTypeUtils.createBoolean(true);
OptVariableTypeSeq args = OptArg.makeVariableTypeSeq(params);
// this is for no arguments
OptVariableTypeSeq args = OptArg.noVariableTypeSeq();
OptUndoModesEnum undoModes = OptArg.noUndoModesEnum();
OptString undoName = OptArg.noString();
VariableType vt = gApp.doScript(file, scriptType, args, undoModes, undoName);
No idea if this will work in the first go.
Europe, Middle East and Africa