Re: Quark
Re: Quark
- Subject: Re: Quark
- From: Hans Haesler <email@hidden>
- Date: Thu, 2 Aug 2001 09:25:30 +0200
On Thu, 02 Aug 2001, Shane Stanley wrote:
>
tell application "QuarkXPress 4.11"
>
tell document 1
>
tell current page
>
set theBoxes to name of every picture box whose selected is true
This works fine when all selected boxes are on the _same_ page (which
must be the current one, but this is another story...).
As I have tried to explain (well... it has been at 11:30 PM, on our
National Holiday...) in my earlier message, the result might be wrong
if the selected boxes are on more than one page.
You don't need to name the boxes to try this out (you'll get empty
strings). Make a facing-pages document, add two pages, make two
picture boxes, _first_ on page 2 and then two picture boxes on page 3.
Select all four boxes, make sure that page 2 is the current page, then
run the snippet. The result will be -- as expected --> {"", ""}.
Now make page 3 the current page and run the snippet, again.
--> {"", "", "", ""}
Finally, bring the two boxes on page 2 to front and select again all
four boxes. Make page 2 the current page and run the script.
--> {"", "", "", ""}
And, no, it doesn't help to move 'tell current page' and to modify it
to 'of current page' in order to make the addressing more direct:
---
set theBoxes to name of (every picture box of current page) whose selected ...
---
Okay, if you make sure that you limit your selections to one page, then
the faster one-line command will be your choice.
Cheers,
---
Hans Haesler <email@hidden>
References: | |
| >Quark (From: Andrew McNichol <email@hidden>) |
| >Re: Quark (From: Shane Stanley <email@hidden>) |