Devonian Times Masthead

Neues von DEVONtechnologies

Hotkey for Toggle Menus

8. August 2017 — Jim Neumann

A recent Twitter post asked a question about turning on and off the WebSharing server in DEVONthink Pro Office. It was assuming a need for an AppleScript or Keyboard Maestro routine. Well, it’s not AppleScriptable (outside of UI scripting, which I don’t advocate) and Keyboard Maestro is more than is needed for this task.

  1. Open System Preferences > Keyboard > Shortcuts and select App Shortcuts.
  2. Click the + button and select DEVONthink Pro Office in the Application dropdown. (If it’s not listed, scroll down to Other… and browse to it.)
  3. In the Menu Title, type Start Server.
  4. In the Keyboard Shortcut, enter a memorable shortcut (noting you need to make sure it’s not going to conflict with other built-in shortcuts). I used ⌃⌥= (Control-Option-Equals).
  5. Add another shortcut but use Stop Server and use the same exact shortcut.

When you return to DEVONthink Pro Office, you can check the Tools menu and you should see either Start or Stop Server options with the shortcut to the right. Pressing the shortcut will now toggle the server from on to off and back.

With a little ingenuity, you likely can find other apps and menus to apply this trick to.