Pass array arguments in terminal InDesignServer sampleclient
Hi all,
In terminal, the below command is working
/Users/user/Desktop/IDS_Sever/sampleclient -host localhost:18384 /Users/user/Desktop/Test/t.jsx myArg="/Users/user/Desktop/Test/"
In Jsx file, to retrieve
var nw = app.scriptArgs.get("myArg"); // get the value to nw
I want to pass array as arguments and It is not working.
/Users/user/Desktop/IDS_Sever/sampleclient -host localhost:18384 /Users/user/Desktop/Test/t.jsx myArg=["/Users/user/Desktop/Test/","/Users/user/Desktop/Test/sample.xml", "1", 5758, "45454"]
In Jsx file, to retrieve
var nw = app.scriptArgs.get("myArg");
File(nw[0]).remove(); // get like this, Script result (xsd__boolean): false
Please give any helps!!
thanks,
John.