• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Working with QuarkXPress bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Working with QuarkXPress bounds (From: Steve Roy <email@hidden>)

  • Prev by Date: Re: XML data and QT, does it exist?
  • Next by Date: Re: Working with QuarkXPress bounds
  • Previous by thread: Working with QuarkXPress bounds
  • Next by thread: Re: Working with QuarkXPress bounds
  • Index(es):
    • Date
    • Thread