4 Replies Latest reply on Oct 10, 2009 9:45 PM by John Hawkinson

    Calling shell/perl from javascript?

    John Hawkinson Level 5

      Is there a way to call a shell script or a perl script from InDesign (CS3) javascript on a Mac?

      I see that the File class has an execute() method, but I would like to avoid managing multiple files, so I'd like to inline my perl code inside javascript. I was almost tempted to File.write() the script to a file, but the resulting file is not executable so FIle.execute() doesn't run it properly anyhow.

       

      Is there a way to do this?

       

      Thanks.