0 Replies Latest reply on Nov 22, 2007 12:31 AM by (Carl_E)

    Paragraphs and Bulleted List

    Level 1
      We are trying to format some text in a TextFrame that we add using javascripting (and InDesign Server CS3).

      Basically, this is what we would like to achieve:

      Some text goes here

      * First bullet point
      * Second bullet point
      * Third etc...

      Each line ends with a "\r" - when we iterate through the paragraphs in the TextFrame and apply the formating in this way:

      textFrame.paragraphs[textFrame.paragraphs.length-1].bulletsAndNumberingListType = ListType.BULLET_LIST;

      We get the following result:

      * Some text goes here
      * First bullet point
      * Second bullet point
      * Third etc...

      When debugging the script we notice that after setting the ListType.BULLET_LIST on the third paragraph the first paragraph suddenly becomes a bullet point; * Some text goes here...

      Are we using the script API in the wrong way?