Quark selections
Quark selections
- Subject: Quark selections
- From: George Mack <email@hidden>
- Date: Wed, 29 Nov 2000 07:48:24 -0500
Xandra asked (on Tue, 28 Nov 2000 07:31:03 -0500)
How does one reference to multiple objects of a selection
tell application "QuarkXPress"
tell document 1
set z to object reference of the selection
end tell
end tell
--> a reference to one object, regardless to how many are selected
I think the syntax you are looking for is
Tell application "QuarkXPress"
set z to object reference of every picture box whose selected is true
end tell
--> a list of object references
Thank you Quark for the "whose" clause!
she also asked
I seem unable to access an box objects size expressed as size by height,
width.
Ideally I'd like to be able to say:
tell document 1
set height of (every picture box whose height it 24) to 36
end tell
I think the height property is a property of bounds of the picture
box (It used to be in quark 3.32r5), but I don't recall trying to get
it directly in 4.11. If it still works, it would be along the lines of
tell document 1
set height of bounds of (every picture box whose height of bounds is ,
("24p" as pica units)) to ("36p" as pica units)
-- note that unit conversion are strings for bounds; safest to
declare them.
-- you may have meant "0p24" as point units; the bare number would be
-- interpreted in current measurement units
end tell
(sorry I don't have Quark open at this time to test it.)
Hope this helps
George
--
GEORGE MACK DESIGN Scituate, MA 02066 (781) 544-3880
Design-Illustration-Desktop Publishing-Miscellaneous Magic