2 Replies Latest reply on Aug 4, 2010 8:20 PM by PankChat

    Passing arguments to Terminal [JS-IDCS3]

    PankChat Level 1

      Hello all,


      I am trying to execute xsltproc (Passing arguments to Terminal: basically trying transform my xml with xslt) from Terminal with the help of javascript. Below is what I've written till now.


      var myFile = File("/Applications/Utilities/Terminal.app");


      Tried different ways, something like below, which I could have done easily in other scripting languages (say Perl etc):


      system "xsltproc -o /Applications/cover/myCover.xml --noout /Applications/cover/cover.xsl /Applications/cover/myCover.xml"


      Any directions in this regard will be appreciated. Or is there any documentation available mentioning this.