2 Replies Latest reply: Sep 10, 2013 7:39 AM by JeffW. RSS

    get the version of the host app

    JeffW. Community Member

      Hi,

       

      how can I get the version of the host app?

       

      HostObject.getRoot()  only gives me the name of the app, not if it's CS6 or CC

      (in my case I'm working with Premiere).

       

      And are there any online docs available for these libs?

       

      thanks,

      Jeff.

        • 1. Re: get the version of the host app
          Harbs. MVP

          I'm not sure about Premiere, but try app.version. Does that give you the version number?

          • 2. Re: get the version of the host app
            JeffW. Community Member

            Oh, I forgot all about this post. This is how I got it:

             

            var result:SyncRequestResult = CSXSInterface.getInstance().getHostEnvironment();

                                          var hostEnv:HostEnvironment;

                                          if((SyncRequestResult.COMPLETE == result.status) && result.data)

                                          {

                                                    hostEnv = result.data as HostEnvironment;

            //                                        trace(hostEnv.appVersion);

                                          }

            Thanks!