-
1. Re: InDesign server CS 5.5 - app.scriptArgs.get doesn't work in jsx script or simpleclient problem
2i_Geert Feb 7, 2012 4:12 AM (in response to hxkris-dev)Hi,
Try this: pass the parameter to the main function:
var param1 = app.scriptArgs.get("param1");
main(param1);
function main(param)
{
if(param)
{
...
}
}
-
2. Re: InDesign server CS 5.5 - app.scriptArgs.get doesn't work in jsx script or simpleclient problem
FabianB. Mar 20, 2012 6:58 AM (in response to hxkris-dev)Hi,
First try: if(app.scriptArgs.isDefined('param1'));
Second, use: app.scriptArgs.getValue('param1') to get the Value of the param
-
3. Re: InDesign server CS 5.5 - app.scriptArgs.get doesn't work in jsx script or simpleclient problem
kjigs4it Sep 20, 2013 1:43 PM (in response to hxkris-dev)I am having the same issue. I am pssing thru SOAP call through
sampleclient.java -host localhost:12345 "c:\myJSXScript.jsx" myXml="myXmlLocation"
JSX:
function main() {
try {
var myInDesignXml;
app.consoleout("isDefined:=" +app.scriptArgs.isDefined("myXml"));
if (app.scriptArgs.isDefined("myXml")) {
myInDesignXml = app.scriptArgs.getValue("myXml")
}
app.consoleout("myXml:=" + myXml);
}
} catch (e) {
app.consoleout('General Exception');
}
return result;
}
main();
Output:
isDefined:=false
I should get the text that we have assigned to myXml param.
Please Help on this.
Regards,
JK
-
4. Re: InDesign server CS 5.5 - app.scriptArgs.get doesn't work in jsx script or simpleclient problem
vinothr82 Sep 23, 2013 2:35 AM (in response to kjigs4it)I don't see any inherent problem with the jsx.
I suggest you debug the code with ExtendScript Toolkit with your InDesign server instance selected in the dropdown of the toolkit.
This would allow you to find the source of error.