1 Reply Latest reply on Jun 14, 2016 1:41 AM by tpk1982

    How to define color swatch item

    Johnwhite Level 1

      Hi experts,

       

      I have this script:

       

      app.findObjectPreferences = null;
      app.findObjectPreferences.fillColor = "MARKUP";
      app.changeObjectPreferences.fillColor = "Black";
      app.changeObject();
      
      app.findObjectPreferences = null;
      app.findObjectPreferences.strokeColor = "MARKUP";
      app.changeObjectPreferences.strokeColor = "Black";
      app.changeObject();
      

       

       

      How can use regular expression to define my color swatch item match "MARKUP", "Markup", "Mark_up", or "Mark-up" ext., the script will recognize it.

       

       

      thanks
      Regard
      John