1 Reply Latest reply on May 13, 2011 5:24 AM by AYS. HAKKIM

    Palette fails to show in CS4?

    AYS. HAKKIM Level 1

      Hi All

       

      Palette window fails to show in CS4. But in CS5 created a session _PR and works fine.

       

       

      #targetengine "_PR"

       

      var _mainWin = new Window('palette', 'Test Docs', [300,150,950,380]);

       

      //leftpanel
      var _leftPane = _mainWin.add('panel', [10,10,320,190], "Doc(s)");
      _mainWin.show();

       

       

      thanks in advance

      Ays.Hakkim

        • 1. Re: Palette fails to show in CS4?
          AYS. HAKKIM Level 1

          I found the solution to this problem from Kahrel's ScriptUI 1-5.pdf. Thanks Kahrel.

           

           

          In CS3 and CS4 you can use palettes only if
          you run the script from the scripts panel. Once
          run from there, you can run the script from
          the ESTK. In CS5, palettes can be run from the
          ESTK from the first run. These limitations are
          Windows only (I think).
          The #targetengine directive is not needed in
          Illustrator and AfterEffects