Grouping boxes in Quark FYI

I believe I found a “feature” in AppleScripting Quark which allows you to group boxes together. Don’t tell Quark or they may think the “feature” is a “bug” and fix it.
set tool mode to drag mode --You need to do this to be able to select more than 1 box. --tell each box you want as part of the group set selected to true --end tell set selected of current box to false --This is were the magic happens.
Make sure you do things correctly and with the correct codes else “Poof” Quark magically disappears. Type 2 errors are not our friends.
I also found that if you start a script with a box already selected, that is part of a group, and the content tool active, you can create a new box, change to drag mode, select the new box, and when you set selected of current box to false you have a new group that contains the old group and the new object.
I can only image what kind of trouble one can get into by selecting different boxes of different groups on different spreads and grouping them.

I hope they don’t read this site. Here’s another odd way to do the same thing:

tell application "QuarkXPress™ 4.11"
    activate
    tell document 1
        set tool mode to drag mode
        tell page 1
            set selected of every generic box to true
            set x to object reference of every generic box whose selectedis true
        end tell
    end tell
    set selection to item1 of x
end tell

I wish I could remember whom I stole it from. I do remember he couldn’t tell me why it worked.

–tet