5 Replies Latest reply on Sep 13, 2011 7:22 AM by libarth1212

    SplitStory

    libarth1212

      Hi,

       

      I have a problem using the SplitStory script found in the Scripts Panel --> Samples, applescript or javascript (InDesign CS5 ).

       

      After applying the script, the story is splited but the hyphenations have changed too.

       

      In the javascript, it is made by the duplicate function :

      function mySplitStory(myStory){
          var myTextFrame;
          //Duplicate each text frame in the story.
          for(var myCounter = myStory.textContainers.length-1; myCounter >= 0; myCounter --){
              myTextFrame = myStory.textContainers[myCounter];
              myTextFrame.duplicate();
          }
      }

       

      I try to explicitly copy the properties of myTextFrame :

              myDuplicate = myTextFrame.duplicate();

              myDuplicate.properties = myTextFrame.properties;

      but it did not solve.

       

      Here are samples of text before and after running the script :

       

      Header 1Header 2
      beforeafter

      before.png

      after.png

       

      Does anybody know what is happening ?

       

      Regards,

      Lionel