3 Replies Latest reply on Jan 16, 2015 11:11 PM by Chinnadk

    found by grep character make outlines object

    hamdifem Level 1

      found by grep character outline can be created

       

      app.findGrepPreferences = app.changeGrepPreferences = null;       
      app.findGrepPreferences.findWhat = "3";
      app.findGrepPreferences.appliedFont = "ZapfDingbats BT";
      app.changeGrepPreferences.createOutlines(); \\?
      app.changeGrepPreferences.appliedObject = "TIK";
      app.activeDocument.changeGrep();  
      app.findGrepPreferences = app.changeGrepPreferences = null;
      
        • 1. Re: found by grep character make outlines object
          Chinnadk Level 4

          Try this,

           

          app.findGrepPreferences = app.changeGrepPreferences = null;       
          app.findGrepPreferences.findWhat = "3"; 
          app.findGrepPreferences.appliedFont = "ZapfDingbats BT";
          app.changeGrepPreferences.appliedObject = "TIK";
          var found = app.activeDocument.findGrep();
          app.findGrepPreferences = app.changeGrepPreferences = null; 
          for(var i =0;i<found.length;i++)
          {
                  found[i].createOutlines();
              }
          

           

          Regards,

          Chinna

          • 2. Re: found by grep character make outlines object
            hamdifem Level 1

            created to outline

            How do I apply object styles

             

            its dont run

             

            app.findGrepPreferences = app.changeGrepPreferences = null;        

            app.findGrepPreferences.findWhat = "3";  

            app.findGrepPreferences.appliedFont = "ZapfDingbats BT"; 

            //app.changeGrepPreferences.appliedObject = "TIK"; 

            var found = app.activeDocument.findGrep(); 

            app.findGrepPreferences = app.changeGrepPreferences = null;  

            for(var i =0;i<found.length;i++) 

                   var myObj = found[i].createOutlines(); 

                    myObj.appliedObject = ["TIK"];           //?????????

                }

            • 3. Re: Re: found by grep character make outlines object
              Chinnadk Level 4

              Try now,

               

              app.findGrepPreferences = app.changeGrepPreferences = null;       
              app.findGrepPreferences.findWhat = "3"; 
              app.findGrepPreferences.appliedFont = "ZapfDingbats BT";
              //app.changeGrepPreferences.appliedObject = "TIK";
              var found = app.activeDocument.findGrep();
              app.findGrepPreferences = app.changeGrepPreferences = null; 
              for(var i =0;i<found.length;i++)
              {
                    var myObj = found[i].createOutlines();
                    myObj[0].appliedObjectStyle = app.activeDocument.objectStyles.item("TIK");
                  }
              

               

              Regards,

              Chinna