1 Reply Latest reply on Mar 16, 2013 6:03 AM by -hans-

    Reg: launch jsxbin from java | batch

    R-Bala-Krishnan Level 2



      Please help me, how to launch *.jsxbin from java or batch file.



      Balakrishnan R

        • 1. Re: Reg: launch jsxbin from java | batch
          -hans- Level 4


          a batchfile will use START "Name" "PathtoExtendScript" "PathToJsxBin"; so it'll have to launch ExtendScript.


          As a alternative you can launch the jsxbin by a vbscript or vbscriptexecutable (exe, just export the vbs as exe ...)


          Set fs = CreateObject("Scripting.FileSystemObject")
          Set js = fs.GetFile("c:\HelloWorld.jsxbin") 
          Set myInDesign = CreateObject("InDesign.Application.cs5.5")
          myInDesign.DoScript js, 1246973031


          Happy Scripting


          Edit: To export a vbs to exe use for example: