Exhibitor has pointed out very thin

I have a lot of Indesign files, and I need to change the underlined words ranging from 0.1 to 0.4 pt. It is possibble through by script?

I remember not where I found this script, a lot of time in some forum...

It works well for my line of work...

    function main(){
    function resetOpt() {
      var old_fCGOpts = app.findChangeGrepOptions.properties;
      var old_fGPref = app.findGrepPreferences.properties;
      var old_cGPref = app.changeGrepPreferences.properties;

      app.findChangeGrepOptions = NothingEnum.NOTHING;
      app.findGrepPreferences = NothingEnum.NOTHING;
      app.changeGrepPreferences = NothingEnum.NOTHING;
      return [old_fCGOpts, old_fGPref, old_cGPref]
    }

    function restoreOpt(myOpt) {
      app.findChangeGrepOptions.properties = myOpt[0];
      app.findGrepPreferences.properties = myOpt[1];
      app.changeGrepPreferences.properties = myOpt[2];
    }
        var myOpt=resetOpt ();
        app.findGrepPreferences.underline=true;
        var myRes=app.activeDocument.findGrep(), l=myRes.length;
        while (l--){
            if (myRes[l].underlineWeight<0.11){
                myRes[l].underlineWeight=0.4;}
            }

    restoreOpt (myOpt);
    }
    app.doScript('main()', undefined, undefined, UndoModes.entireScript, 'Fix Underline');

If it works I thank the author whatever it is wherever you are... rsrs

hug!

Tags: InDesign

Similar Questions

Maybe you are looking for

  • GTX 980 TI still does not work

    I bought a GTX 980 TI knowing that I probably would feed the 6 and 8 pins externally. I thought it would work at least to normal loads while I built a more elegant solution. No dice. The machine just clicks and dies. I got a new PSU ATX modular power

  • Orders of MathScript

    HI all, I'm quite new to LabVIEW MathScript and have had trouble with the help of the command 'load' in the window MathScript to load the data want to sort the data in each column (4 in total) in a data file. I can do this in Matlab, simply by using

  • HP ENVY m6: boot image selected is not authenticated

    I need advice. "" When I turn on my laptop (HP ENVY, WINNING 8) computer I get the following message: "boot device could not authenticate press enter to ' when I have c: it stops. I can't boot into recovery mode either. What the hell went wrong?

  • With the help of VISA can not find the com port

    I use visa read but cannot find any com port in Windows 7. How can I find the com port in Windows 7?

  • Dreamweaver CC does not connect to the right root directory

    Hello.I'm running DW CC on a Macbook Pro OSX 10.7.5. I made a change to a link in a page file and put it to the remote server, but the direct page still showed the old link (even after the update).After a number of possible causes of troubleshooting,