Re: Group by pairs [was: QXP: ungrouping ?]
Re: Group by pairs [was: QXP: ungrouping ?]
- Subject: Re: Group by pairs [was: QXP: ungrouping ?]
- From: Hans Haesler <email@hidden>
- Date: Fri, 9 Nov 2001 21:13:47 +0100
On Fri, 9 Nov 2001, Jeff Meek wrote:
>
I have a Quark document with 4 boxes on it. I want to group the first 2
>
boxes >then the last 2 boxes. When I run the script below, it only groups
>
the first 2.
<snip>
>
Any suggestions??
Jeff,
the problem is: the menu article "Group" is disabled when
you select it the second time.
The solution is to bring another app to the front (inbetween).
This can be the "Finder". Or "me", i.e. the "Script Editor".
---
tell application "QuarkXPress 4.11"
tell document 1
set tool mode to drag mode
set selected of generic box 1 to true
set selected of generic box 2 to true
end tell
activate
select menu item "Group" of menu "Item"
set selection to null
end tell
tell me to activate
tell application "QuarkXPress 4.11"
tell document 1
set selected of generic box 3 to true
set selected of generic box 4 to true
end tell
activate
select menu item "Group" of menu "Item"
end tell
---
Please note that I prefer a different command for selecting
the boxes. How come? Just to make a difference with the
'select' command for the menus.
Regards,
Hans
---
Hans Haesler <email@hidden>