Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
get info: for a pull-down menu
Syntax
get info menu item nameOrPosition of menu nameOrPosition [of submenu nameOrPosition]
Parameters
menu item nameOrPosition -- name or position number (counting menu dividers) of the menu item
of menu nameOrPosition -- name or position number of the pull-down menu
[of submenu nameOrPosition] -- name or position number (counting menu dividers) of the submenu
Result
record of properties (attributes)
Examples
get info menu item "" of menu "Graphics" -- for the menu itself
get info menu item "Select All" of menu "Edit" -- for a menu item
get info menu item "" of submenu "Alignment" of menu "Graphics" -- just for the submenu
get info menu item "Center" of submenu "Alignment" of menu "Graphics"
checked of (get info menu item "Geneva" of menu "Font")
Notes
- To get info for a top-level menu or submenu, use an empty string "" for the item.
- If you get unexplained errors, see the separate Tech Support FAQ document.
- For nested hierarchical menus, use the form "submenu;subsubmenu".
- For a complete list of properties for each type of object, see the Properties section of Chapter 6.
- By default, Player matches only the number of characters specified in the verb parameter. This feature has the benefit of ignoring trailing punctuation, but will occasionally find a false match.
- By default, name matching is not case sensitive.
Errors
Menubar is not available (e.g. a modal dialog is present).
See Also
exists menu
outline menus
yield time
set complete match
get info popup
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.