condition:Menu
**This is an old revision of the document!**
Table of Contents
The Menu condition looks for a matching menu in the system menu bar and tests its state.
You can look for a menu with a name that:
- exactly matches a specified string.
- contains (case insensitively) a specified string.
- matches a specified regular expression.
Alternatively, you can look for a menu based on its shortcut (eg Command-C), or you can look for a specific menu based on its path. A menu path looks like this:
Edit ➤ Speech ➤ Start Speaking
You can use any of these separators in the path:>, →, ⇒, or ➤, with spaces around them as desired.
You can then test if:
- the menu exists.
- the menu does not exist.
- the menu is enabled.
- the menu is not enabled.
- the menu exists but is not enabled.
- the menu is marked (eg with a checkmark).
- the menu is not marked.
- the menu exists but is not marked.
See Also
Actions
Conditions
condition/Menu.1457387864.txt.gz · Last modified: by AlainLifchitz
