4 Replies Latest reply on Jun 26, 2016 6:12 PM by CoverBuilder

    Need help with this Find/Replace Script.

    cbishop01 Level 2

      Hi i got this script from Loic.Aigon.  And i Got this to work for single find/replace Changes however i cannon get it to work for multiple changes.

       

       function cb5CallBack(target) {
              var findProps, changeProps;
              
                  findProps = {findWhat:"Distributed by ",}   
                    changeProps = { changeTo:"Distributed by. ",}
                  findProps = {findWhat:"Distribué par ",}   
                    changeProps = { changeTo:"Distribué par. ",}
                  findProps = {findWhat:"Distribuido por ",}    
                    changeProps = { changeTo:"Distribuido por. ",},
                
              RTXT(target, findProps, changeProps);   
              } 
      

       

      function RTXT(target, findProps, changeProps)
      {
      app.findChangeTextOptions.caseSensitive = true;
      app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
      app.findTextPreferences.properties = findProps;
      app.changeTextPreferences.properties = changeProps;
      app.changeTextPreferences.properties = changeProps;
      target.changeText();
      }