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: Cameron Smith <email@hidden>
- Date: Wed, 6 Nov 2002 08:00:47 -0800
At 15:29 +0000 02.11.05, Steve Thompson wrote:
>
I changed my script to this:
>
>
tell application "QuarkXPress 4.11"
>
tell document 1
>
set m to object reference of every text box
>
set obrefs to {}
>
repeat with j in m
>
if (box overflows of j) then set end of obrefs to j
>
end repeat
>
end tell
>
end tell
Steve,
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.
--
Cameron Smith
Cutting Edge Technology Services, Inc.
Parksville, BC
http://www.cetsi.com/
tel: 1.250.954.3261 fax: 1.250.954.3297
------------------------------------------------
Websites ** Print Production ** Editorial Services
Publishers of the
http://SaltSpringNews.com/
------------------------------------------------
_______________________________________________
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.