Re: Working with QuarkXPress bounds
Re: Working with QuarkXPress bounds
- Subject: Re: Working with QuarkXPress bounds
- From: Luca BASSINI <email@hidden>
- Date: Thu, 26 Feb 2004 10:59:36 +0100
On 25/feb/04, at 23:14, Steve Roy wrote:
Hi,
Hi Steve
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
change this line to:
set theBounds to (bounds of aBox) as list
item 1 of theBounds --> can't get item 1 of theBounds
--> this line is now working!!!
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?
hope this could help
Steve
Luca
PS: which version of QXP are you using? Be careful to use old XPress (I
mean QXP 3.3x, 4.11, 5.01) on Mac OS X... Then, you'll really need
coercion...
_______________________________________________
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.