I was wondering, how can I make menu items into toggleable, with the checkmarks beside them? Like the bottom item here:
In interface builder, in the info window for your menu item is the “state” property. To make the menu item checked, set it to ‘on’… for unchecked, set it to ‘off’. Then you can get it’s value using typical verbage like…
set MenuItemState to state of menu item "MyToDO" of menu "Window" of main menu as boolean
…or set it’s value with…
set state of menu item "MyToDO" of menu "Window" of main menu to 1
Set the “MyToDO” part to whatever the applescript name of your menu item is. Also, remember that a button’s state as a boolean is either a 0 (false/unchecked) or a 1 (true/checked).
Cheers,
j