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

Re: Quark selections


  • Subject: Re: Quark selections
  • From: Hans Haesler <email@hidden>
  • Date: Tue, 28 Nov 2000 15:11:03 +0100

On Tue, 28 Nov 2000, Alixandra Leigh wrote:

>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

A selection of objects is returned as one.
To get a reference of every box use the 'selected' property:
---
tell document 1 of application "QuarkXPress 4.11"
set boxRef to object reference of every generic box whose selected is true
end tell
---

Note that you should test if boxRef is a list (with a single box the
class is 'generic box'). If necessary you must coerce it to 'list',
else you can't loop through the item(s).
---
if class of boxRef is not list then set boxRef to {boxRef}
---

Hans

---
Hans Haesler | email@hidden


References: 
 >Quark selections (From: Xandra Lee <email@hidden>)

  • Prev by Date: Re: Height, width and Resizing multiples in Quark
  • Next by Date: Scripting stuffit for .zip - TIP
  • Previous by thread: Quark selections
  • Next by thread: Quark selections
  • Index(es):
    • Date
    • Thread