• 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: Group by pairs [was: QXP: ungrouping ?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>


  • Prev by Date: Conflict with Standard Additions 1.7f2 (classic) and Smile (1.8.4, at least)
  • Next by Date: Re: Convert a string into a list without Delimiters
  • Previous by thread: Re: Conflict with Standard Additions 1.7f2 (classic) and Smile (1.8.4, at least)
  • Next by thread: Archive ReTooled! & Password Protected Too!
  • Index(es):
    • Date
    • Thread