I am not sure how this works on the Mac, but with Windows, you can have your commands in a batch file and then execute that with ExtendScript. For example, here is a script that creates a batch file and then executes it:
var bat = File ("~\\temp.bat"); bat.open ("w"); bat.writeln ('start Notepad.exe "C:\\DATA\\Scripts\\results.log"'); bat.writeln ('quit'); bat.close (); bat.execute (); // This is what runs the batch file (like a double-click on it in Windows Explorer).
You can detect the OS that the script is running on by using $.os. On my system this
displays "Windows/7/64 6.1 Service Pack 1 (32-bit emulation)". -Rick
Thank you very much for your reply...
Hi John, If this solved your problem, please mark my answer correct. Thank you very much. -Rick
your answer works on windows perfectly.