re: Xpress filter reference form
re: Xpress filter reference form
- Subject: re: Xpress filter reference form
- From: email@hidden
- Date: Fri, 27 Jul 2001 00:07:49 EDT
>
on Thu, 26 Jul 2001 Frank Miedreich <email@hidden> wrote:
>
I am trying to select specific boxes in xpress by their top border
>
tell xpress
>
tell document 1
>
get every generic box whose top of bounds < aValue
>
...
>
end tell
>
end tell
>
>
the mechanism works if specify a rotation, or color. Why is this and
>
how can I work around this problem?
I've banged my head on the same wall. My guess is that Quark has to do some
math to figure out "top of bounds" and can't do that and filter at the same
time.
Try something like this:
set aValue to 1
tell document 1 of application "QuarkXPress"
set selection to null
set tool mode to drag mode
set boxList to object reference of every picture box of spread 1
repeat with oneItem in boxList
if top of bounds of oneItem as real < aValue then set selected of
oneItem to true
end repeat
end tell
Don't know why you're selecting these boxes, but you probably know that you
can do a lot of work without selecting them.
Also, I'd be careful about trying to select all of the boxes in a document.
Quark won't let you do that manually. That's why this sample starts with a
list of the boxes in the first spread.
HTH
Robert Kyle
Star Tribune
Minneapolis