Re: Menu Events [was: Xpress 4.1 and group box type]
Re: Menu Events [was: Xpress 4.1 and group box type]
- Subject: Re: Menu Events [was: Xpress 4.1 and group box type]
- From: Hans Haesler <email@hidden>
- Date: Thu, 25 Jan 2001 21:52:18 +0100
On Thu, 25 Jan 2001, Vince Jelenic wrote:
>
now I need a push.
>
where is "
>
>Menu Events extension
>
" and "
>
>Menu Events Scripting Addition
Vince,
okay... but don't come back, complaining ;-)
Both, the OSAX "Menu Events Scripting Addition" and the system extension
"Menu Events" can be found at
http://www.osaxen.com/ in the folder
"Popular". Download "Menu Events 1.3.1".
When they are installed, the "vanilla" XPress menu selection commands don't
work anymore. To get the same result as with David's example you may use...
---
tell application "QuarkXPress 4.11"
activate
tell document 1 to set tool mode to drag mode
Select Menu Item menu ID 3 menu item ID 7
Select Menu Item menu ID 5 menu item ID 10
end tell
---
... where 'Menu Item menu ID 3' is the 'Edit' menu and 'menu item ID 7'
is 'Select All'. And 'Menu Item menu ID 5' is the 'Item' menu and
'menu item ID 10' is the menu article 'Group'.
Count the menus from left: the Apple menu is ID 1.
Count the menu articles from top (a separation counts as an item, too).
You may, also, explore the menus:
---
tell application "QuarkXPress 4.11"
Query Menu List
end tell
---
The result is a list of lists for every menu. The lists look like this
example:
-->...{menu ID:3, menu title:"Edit", menu enabled:true, menu definition
procedure resource ID:1}...
To get the details of a menu (but I don't know how to access the submenus):
---
tell application "QuarkXPress 4.11"
Query Menu menu ID 3
end tell
---
This time, the result is a huge (3400 characters) list of lists,
beginning like this:
-->{{menu item ID:1, menu item text:"Undo Item Change", menu item enabled:
true, menu item mark:0, menu item icon:0, menu item style:0, menu item
command:90}, ...
Best regards,
Hans
---
Hans Haesler | email@hidden