QuarkXPress scripting

OK, I’ve got this far: extract data from FileMaker, create group with one picture box, four self-extending text boxes, create first box, and then I want to move the second group box to 5 mm below the first box, unless the group extends below the page limit.

How can I get the bottom limit of the first group as a real number?