• 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
Quark selections
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: RE: Scritping Fetch (3.0.3)
  • Next by Date: Re: Scritping Fetch (3.0.3)
  • Previous by thread: Re: Quark selections
  • Next by thread: Re: Quark selections
  • Index(es):
    • Date
    • Thread