There are following two ways to execute the script on Mac from terminal:
01) The way it works on Win, same way it works even on Mac. But make sure that you have mentioned following statement at start of your Java Script:
02) Or if you do not want to do as mentioned above, you may provide command in terminal as follows:
Open -a <full path of application> <Java Script Source"
Hope this information helps.
Please let me know the steps and syntax for run the jsx file in command prompt on Windows OS.
Doesn't he explicitly explain in his very first question how he does that? "... by using following cmmand:"?
Did it not work for you?
Yes, that command open the indesign but not execute the jsxbin fine.
Following is the code that I am using in batch file to execure the JSX file.