I made some AppleScript buttons/widgets for Word. The preset includes:
- button for saving. Button is gray as long as there haven't been any changes since the last save
- bold/italc/underlined buttons. They are highlighted if the selected text is bold/italc/underlined
- buttons for increasing and decreasing font size and, just for fun, a slider widget for adjusting the font size
- alignment buttons. Highlighted according to the alignment of the selected paragraph
- Widgets for highlighting text and changing the font color
Only tested with Word 16.31 (Office 2019)
I would suggest only activating some of those widgets and/or increasing the "Execute script every X seconds" for battery reasons.
Something useful I discovered which is not included in the preset:
In the word menu, under extras, you can "adjust keyboard", meaning you can create your own hotkeys for some functionalities. For exaple, this can be used to create a Touch Bar widget that shows wether the style of the current paragraph is "Normal" and msets the style to "Normal" upon pressing the button. Use this code for the appearance of the widget:
if application "Microsoft Word" is running then
tell application "Microsoft Word"
return name local of style of selection
Set the Alternate Color Regex to "Normal". Then set a hotkey for toggling the "Normal" style in the Word settings. Now assign this hotkey as the action of the widget.