2 Replies Latest reply on Aug 21, 2007 11:14 PM by (Carl_E)

    InDesign CS3 Server - app.scriptArgs

      Is there a way of iterating through all arguments passed in to a server script in a for-loop fashion?

      So far I have been able to retrieve the argument values by using the following syntax;

      var arg1 = app.scriptArgs.getValue("Argument_1");

      var arg2 = app.scriptArgs.getValue("Argument_2");



      But let's say the number of script arguments, as well as the argument names varies from time to time. How would I then retrieve each argument value?

      I have looked at using app.scriptArgs.getElements() and was hoping that it would return an Array of scriptArgs - but it seem like it is only returning a single scriptArg object.

      Any advice is much appreciated.