Working with QuarkXPress bounds
Working with QuarkXPress bounds
- Subject: Working with QuarkXPress bounds
- From: Steve Roy <email@hidden>
- Date: Wed, 25 Feb 2004 17:14:10 -0500
Hi,
I'm having some trouble working with the bounds of boxes in QuarkXPress. All I
want to do is get the bounds of a box and make sure it's within the bounds of
the document. However this seems more complicated than it should be.
tell application "QuarkXPress"
set theBoxes to every picture box of document 1
repeat with aBox in theBoxes
set theBounds to bounds of aBox
item 1 of theBounds --> can't get item 1 of theBounds
end repeat
end tell
I found that the class of this 'bounds' property is 'measurements rectangle',
but I don't see this in the QuarkXPress dictionary.
I found 'fixed rectangle' however, and if I add
coerce theBounds to fixed rectangle
then I'm able to get to the 'width', 'height' and other properties of theBounds.
However I don't know what units those "fixed" values are. What is a fixed value,
and is this what I want?
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
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.