5 Replies Latest reply on Aug 3, 2011 7:57 AM by fivan

    [IDCS5 - js] TargetEngine do not identify variables and functions

    fivan Level 1

      Hi All

       

      I have several scripts in startup with different #targetengine specified.

      In those different scripts I use variables and functions with the same name.

       

      When I call those functions or variables from my scripts, what I see is not the one specified in the startup with the same targetengine, but it's still the last one initialized by InDesign.

       

      for example:

      scripts at startup:

       

      #targetengine "_1_"

      var a = "1"

       

      #targetengine "_2_"

      var a = "2"

       

       

      Scripts in runtime:

       

      #targetengine "_1_"

      alert(a);

       

      -- 2

       

      #targetengine "_2_"

      alert(a);

       

      -- 2

       

      Someone can help me?

       

      thanks
      Ivan