in

Quark Forums

Strange measurement result

Last post 08-03-2004 7:30 AM by HansG. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-03-2004 7:30 AM In reply to

    • HansG
    • Not Ranked
    • Joined on 08-03-2004
    • Posts 10

    Strange measurement result

    I'm working with Quark XPress 6.1 (language: Dutch, measurements: cm)
    Does anyone noticed the same as I do?

    If I locate a textbox like

    set BodyCopyBox to make text box at end with properties {bounds:{"9 cm", "2.123 cm", "14 cm", "8"}}

    The resukt is a textbox 9 cm, 2.123 cm, 5.877 cm, 5 cm

    if I run the "Document construction" example within the Apple Events Scripting folder of QuarkXPress I notice the same.

    Even what measurement is given, it is never exact.
    Do I something wrong?
  • 08-03-2004 12:51 PM In reply to

    Strange measurement result

    Hi Hans,

    That is perfectly normal... That is to say, you got exactly what you've asked for.

    When you create a box using Applescript, Quark asks you to supply it with bounds in the form of

    {Top, Left, Bottom, Right}

    However the values shown in the measurements palette are in the form

    {X(origin), Y(origin), W(idth), H(eight)}

    Now if you translate your bounds ({"9 cm", "2.123 cm", "14 cm", "8"}) to what should be returned by your measurements palette you get:

    X: 2.123 cm
    Y: 9 cm
    W: 5.877 cm (Right - Left or 8 - 2.213)
    H: 5 cm (Bottom - Top or 14 - 9)

    Hope this helps!

    Michel Lemieux
    Click here --> to visit my PUBLISHING & SCRIPTING FORUM

  • 08-03-2004 1:03 PM

    • HansG
    • Not Ranked
    • Joined on 08-03-2004
    • Posts 10

    Strange measurement result

    @scripting_Ace

    Now you explain it, it is very logic.
    I had to realise that the page coordinates are used and not the textbox measurement.

    Thanks.
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems