4 Replies Latest reply on Aug 17, 2017 5:24 AM by pawanm16285856

    How to pass information between JS Extension and JSX host

    Jens Troeger Level 1



      My CEP extension for InDesign CC runs some HTML/Javascript code which fetches data from a remote REST API host. It then executes ExtendScript code using the CSInterface:


          url: "some.url",
      }).done(function (data, textStatus, jqXHR) {
          var csInterface = new CSInterface();


      How can I pass Javascript’s data to the ExtendScript script?

      • It doesn’t seem like localStorage is available across boundaries between the host application’s core (InDesign) and CEP extension runtime. What about sessionStorage?
      • I’d like to avoid using files on the host (Javascript FileSaver, and ExtendScript File) unless there is a way to use proper temporary files in the system’s temp folder.