2 Replies Latest reply on May 17, 2009 10:29 PM by PaulR72

    [CS3] [javascript] Problem with use of textWrapOffset in textWrapPreferences

    PaulR72 Level 1

      Hi everyone,

       

      I'm having some problems with using textWrapOffset.

       

              alert(mySelection.textWrapPreferences.textWrapOffset);
              mySelection.textWrapPreferences.textWrapOffset[0] = 20;
              alert(mySelection.textWrapPreferences.textWrapOffset);

       

      In the above code, the first alert outputs the four existing text wrap offsets (e.g. [3, 0, 0, 0]). But after attempting to change the top textWrapOffset in the second line of code, the last alert still outputs the old text wrap offset, and doesn't show the change. It's as if the textWrapOffset is read only. Or is there something that I'm missing?

       

      Note that before running the script, the object selected in InDesign is a simple "Rectangle" object.

       

      Hope someone can help!

       

      Paul