Re: Quark selections
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