Re: Box Overflows in Xpress 4.11 part 2
Re: Box Overflows in Xpress 4.11 part 2
- Subject: Re: Box Overflows in Xpress 4.11 part 2
- From: nino <email@hidden>
- Date: Thu, 14 Nov 2002 11:03:01 +0100
Cameron wrote
>
The problem with "box overflows" seems to be that it will fail unless the box
has actually been displayed at some point in the past, which means showing
the page and activating QXP.
>
If you're creating pages or text boxes in the background and don't want to
activate XPress, try this:
>
object reference of every text box whose story 1 is not "" and offset
of the last character of last line is not equal to offset of the last
character
>
If the box overflows, those characters not in the box don't have line numbers;
the last line of the box is the last line that is actually in the box.
but this does'nt work for me. Apparently the first line with the whose
clause will list last box of every story with multiple lines since the
reference to last character of last line actually gets last character of
line -2. So the only solution is to show the object and get the box
overflow.
tell application "QuarkXPress 4.11"
try
set x to object reference of last text box of every story of document 1
whose story 1 is not "" and offset of last character of last line is not
equal to offset of last character
on error
set x to {}
end
if class of x is not list then set x to {x}
set obrefs to {}
repeat with j in x
if (next text box of j is null) then --this is required only for
Xpress 3.xx
show j
if (box overflows of j) then set end of obrefs to object
reference of j
end if
end repeat
end tell
nino
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.