3 Replies Latest reply on Aug 2, 2016 9:06 AM by Silly-V

    Add Selected Colors??

    levi23 Level 1

      Hello such. I wanted to ask if you can add in the document palette colors of selected objects using javascript.

       

      There is an option in the menu of the color palette

       

      Add Selected Colors

       

      I tried this:

       

      app.executeMenuCommand("add selected colors");

       

      app.executeMenuCommand("Add Selected Colors");

       

      but it does not work

       

      I would like to add the selected color to the document but not how to do it in javascript.

      Any help please?

       

      It would also be great to clean the palette leaving only the colors used in the document using javascript.

       

      Thank you very much for your help.

       

      a greeting