Running macro via XRun -- only runs the first row on input CSV

I have this code to run my macro via XRun which is working:

      "Command": "XRunAndWait",
      "Target": "/Applications/Google Chrome",
      "Value": "file:///Users/user/Desktop/"

But the problem is it’s only running the first row on my input CSV file and stops the execution. My input csv file contains more than one row and I wish to run them as well.

How do I do this?

I guess you are using the normal csvRead command. It reads only one line per call.


  • Run csvRead in a loop. e.g. while…end or times…end
  • Or use csvReadArray - it imports the complete CSV at once into an array.