Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
set
[the
] commandChar of menuItem ¬ of menu to char
The commandChar
property returns or sets the character that you'd press with the Command key as the keyboard shortcut (commonly called the Command-key equivalent) for a menu item. empty
. Otherwise, it returns the character. set the commandChar of menuItem 3 of menu "Help" to "?"
get the cmdChar of second menuItem of menu "File"
if it is "O" then ...
menuItem text
menuItem posInteger
ordinal menuItem
For example: menuItem "New"
menuItem 2
second menuItem
menu text
menu posInteger
ordinal menu
For example: menu "File"
menu 2
second menu
"a"
return
tab
numToChar(13)
Properties
Version 0.7b1 (March 24, 2022)