in

Quark Forums

Line count anomaly

Last post 06-02-2009 2:35 AM by Jean-Marie Schwartz. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-31-2009 2:30 AM

    • Emma
    • Top 10 Contributor
    • Joined on 07-07-2004
    • Leeds, UK
    • Posts 1,184

    Line count anomaly

    Can anyone try this? Seems to happen in Quark 6, 7 and 8:

    Draw a text box with 2 columns. Put some type in it. Say 2 paragraphs (of one line each), then an enter to force it into the next column, then some more type.

     Now run:

     tell document 1 of application "QuarkXPress"
        tell text box 1
            tell story 1
                tell paragraph 3

                   count of lines
                end tell
            end tell
        end tell
    end tell

    Paragraph 3 (the top of column 2) will show up as having 3 lines, even if it's only got 1.

    If paragraph 3 only contains a return, it shows as one line.

    Also, a paragraph ending with a return usually returns 2 lines, whereas the one ending with 'enter' shows as 1 line (assuming single line paragraphs!).

    I have a script which depends on the length of the paragraph, and when the para falls at the top of a column, it goes wrong. 

    I may have raised this before, a couple of years ago, but I'd still love an answer!

  • 06-02-2009 2:35 AM In reply to

    Re: Line count anomaly

    Hi Emma!

    Just tried on v7.5 and got the same results. The funny thing is I typed 1 word and a digit in the 2nd column and got 3 as a result then deleted those "words" and got 1 as a result. It looks like a bug. Should be reported to Quark, shouldn't it?

    Jean-Marie Schwartz

    > Mac Pro Quad Core Intel 2.8 GHz, OS X.6.8, Quark XPress 9.2, Adobe CS5 <
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems