PreserveLocalFormatting Script

Viewing 3 reply threads
  • Author
    Posts
    • #94588
      Bob Terry
      Member

      Has the Dave Saunders script PreserveLocalFormatting.jsx been updated to work with InDesign CC2017? Still having problems with Word formatting when importing…and the old script doesn’t work now. Is there any relatively simple such script available?

    • #94599

      I’m not familiar with Dave’s script, but it sounds like it does the same as Preptext / Perfect Preptext from Peter Kahrel / Jongware?

      What is the error-message with Dave’s version?

      Kai

    • #94603
      Bob Terry
      Member

      There is no error message…it just doesn’t do anything. When I check the Character Styles panel, there’s nothing there after I run the script.

      I did download and run both Preptext and PerfectPreptext. The PerfectPreptext_do.jsx gave me an error message, but Preptext did run.

      And…what happened to the buttons at the bottom of the Scripts panel to run? You have to click at the top and then click on Run.

      Bob

    • #94604

      I haven’t installed CC2017 on my machine, but Daves script isn’t running in CC2015 too. The reason is this part that starts at line 17:

        switch (Number(String(app.version).split(".")[0])) {
          case 3 :
          case 4 :
            processStylesPreCS3(range, myStyles, aDoc);
            processPosnsPreCS3(range, myPosns, aDoc);
            break;
          case 5 :
            processStylesCS3(range, myStyles, aDoc);
            processPosnsCS3(range, myPosns, aDoc);
          }
      

      Change it to (remove everything except):

        processStylesCS3(range, myStyles, aDoc);
        processPosnsCS3(range, myPosns, aDoc);
      

      Nevertheless Preptext and Perfect Preptext seems to be the better solution, cause this will not apply e.g. bold to a headline, when the complete para is bold.

      > And…what happened to the buttons at the bottom of the Scripts panel to run? You have to click at the top and then click on Run.

      I did not understand, what you mean here.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
>