5 Replies Latest reply on Oct 24, 2013 2:32 PM by Corgano

    How do i attach to the active acrobat window

    Corgano

      How do I attach to the active acrobat window and get it's javascript object? I know how to do this when i know the filename:

       

      $oAcro = ObjCreate("acroexch.app")

      $oPDF = ObjCreate("AcroExch.PDDoc")

       

      $File = @ScriptDir&"\test.PDF"

       

      $oPDF.Open($File)

      $oJSpdf = $oPDF.getJSObject.app.opendoc($File)

       

      But how would i do this if I didn't know $File? If I wanted to connect to the Active window instead?