2 Replies Latest reply on Nov 24, 2009 10:20 PM by macian2

    (AS) Select Paragraph Text without highlighting carriage return

    macian2 Level 1

      (AS) Select Paragraph Text without highlighting carriage return character.

       

      I need help with selecting a paragraph located in a story.
      The selection should not contain a "hard return" (ASCII number 13")

       

      My current sample is shown below:
      -- sample assumes that insertion point is already placed within a specific paragraph...

       

      tell application "Adobe InDesign CS3"
      activate   
      set theDoc to active document
          tell theDoc
          select paragraph 1 of selection
      end tell --theDoc
      end tell --app

       

      It seems simple... The above sample will select my chosen paragraph,

      but it also selects the carriage return also. How would I go about doing this?

      Any advice would be helpful!

       

      Thank you!