Simple Automation Example Using Keyboard Maestro #5

The task manager application I use, OmniFocus, recently changed the default behavior for deleting a task (versus marking it complete). Previously, the ⌫ key was used. Because people complained about unintentional deletions, the default behavior was changed to ⌘⌫. That made sense to me because it is the same key combination used to delete files in the Finder.

To take advantage of this idea - now uniting OmniFocus and the Finder – I added a few new macros. One is for the application Drafts. I use the ⌘⌫ keystroke to trigger a simple macro with one step - it types the ⌫ key. Effectively, I changed the default behavior for deleting a draft from ⌫ to ⌘⌫.

I then created a macro for the Apple Mail app. I wanted to mark an unread email in my Inbox as read and then move it to the Trash, using the same ⌘⌫ keystroke. There is a keyboard shortcut in Mail that toggles the read/unread status. But, the menu sequence: Message → Move to → All Trash does not have a keyboard shortcut. So, I created one in System Settings → Keyboard → Keyboard Shortcuts → App Shortcuts.

I then created a Keyboard Maestro macro, triggered by ⌘⌫ that first types the keyboard shortcut to mark the email as read, and then types the newly created keyboard shortcut that moves it to the Trash.

Next I moved to Fantastical where a new macro triggered by ⌘⌫ has two actions. The first types the ⌫ key and the second types the ↩︎ key to accept the default option from the annoying dialog asking, "Are you sure?"

Obsidian was easy to merge into this behavior because it allows you to create your own hotkeys for dozens of different options. (That is a feature that I wish every application offered.) I emulated the Finder's behavior in Obsidian by assigning ⌘⌫ to the Delete File option.

I now have six applications that perform equivalent actions using the same hotkey: Finder, OmniFocus, Mail, Drafts, Obsidian and Fantastical. I’ve freed one little space of brain memory for use elsewhere.