Keyboard Maestro 10 Releases

Hooray! There’s a big update to Keyboard Maestro today. The new version 10 includes a pile of new features. Banner features include the ability to add data to menu bar icons, create “Favorite” actions, and subroutines. (That’s right, you can now program subroutines in Keyboard Maestro.) Below are some of my favorite new additions:

  • Added configurable Favorite Actions.

  • Added Select Macro by Name, as well as This Macro and This Macro Group options to the macro selector pop-up.

  • Added search field to macro selector pop-up.

  • Added search field to Insert All Actions, All Functions, All Tokens, and Variables menus.

  • Added Copy as Set Macro Group Enable and Toggle Macro Group actions to contextual menu for Macro Group column.

  • Support double-clicking dividers in the editor window to set the ideal size.

  • Added Edit ➤ Insert ICU Date Field menu to insert the various ICU Date components.

  • Added OCR Screen and Paste by Name to the Macro Library.

  • Added support for manipulating Keyboard Maestro Engine windows.

  • Added option to include Macro Groups in the status menu bar.

  • Added Return action to return a value from subroutine macros.

  • Several new triggers, including unlock, appearance changed, online and power status triggers.

  • Added “long press” option for Hot Key and USB Device.

  • Added support for selecting multiple files or folders in the Prompt For File action.

My congratulations go to Peter for shipping this update. I am kicking the tires on the new features now, and I will be doing a free update to the Keyboard Maestro Field Guide after the new year covering the new features.

StreamDeck + Keyboard Maestro with KMLink

The Stream Deck already has a built-in plug-in for running Keyboard Maestro. It's great and lets me run Keyboard Maestro scripts from my Stream Deck. However, it can also be tedious in that it requires me to hard link specific buttons to the Stream Deck and if I want to move a button, I’ve got to get past a bunch of friction. If I want to move the button, I needed to change the Keyboard Maestro entry. That's no fun.

Lately I've been just using the independently developed KMLink instead. The script looks at your Keyboard Maestro library and lets you attach a specific script to the button. You can also add a custom icon. Once you add it to your Stream Deck setup, you can move the button around the Stream Deck without any complicated remapping.

If you are combining your Stream Deck with Keyboard Maestro, you'll want to check this out.

The AppleScript Email Extractor

I spent several hours putting together a super-nerdy Keyboard Maestro script that saves an Apple Mail message as a PDF and then uses some AppleScript to pull data out of the message and use it in the file name. I've already added the video, the Keyboard Maestro Script, and the AppleScript to the Keyboard Maestro Field Guide. Below you can watch the video and download the AppleScript here.

Keyboard Maestro Script Using AppleScript to Create Contacts

Creating new contacts in Apple's Contacts app takes entirely too much mousing, clicking, and typing. This Keyboard Maestro script combines the power of Keyboard Maestro with a little bit of AppleScript to automatically create Apple Contact cards. If you dig this, there is an offer code to get $5 off the Keyboard Maestro Field Guide, “KMMAY2020”. Enjoy.


Keyboard Maestro Script to Automate Adding Text to a Google Doc

I frequently receive email from Mac Power Users listeners with feedback on some topic we discussed during the show. If the email is something that I may want to mention on the future feedback show, I copy that email into a running Google document that we then use when planning the feedback shows.

I've been doing this for years manually which, for a guy who likes to brag about his automation prowess, is kind of bananas. So today I took 10 minutes and wrote a quick Keyboard Maestro script to automate this process going forward and I thought I would share it. I'm adding this to the Keyboard Maestro Field Guide but also wanted to put it out on the web for anybody else that may need something similar.

Keyboard Maestro Update

Last month saw the release of the latest major update to Keyboard Maestro. Version 9 adds several new features, including multiple editor menus, a method for extracting text from images, and dark mode. That’s just the start. They also added support for the Elgato Stream Deck, which is pretty fun. I’m going to be doing a free update to the Keyboard Maestro Field Guide adding videos on the version 9 features just as soon as I get done shipping the new Shortcuts Field Guide, which is imminent.

Keyboard Maestro Script for Automating Contact Creation with Cardhop

Here’s a small Keyboard Maestro script that I use just about every day to create contacts on my Mac with Cardhop. The problem this is designed to solve is Basecamp project email addresses. Every new Basecamp project I create has a specialized (and nearly unreadable) email address attached. Any email I copy or forward to that address gets added to the project. Handy. Right?

But the process of creating a new contact card for each project is tedious, particularly with the Apple Contacts app that requires much clicking and typing. So I made this script that queries me for the project name and then grabs the magic email address from my clipboard to create a contact in the Basecamp Projects group in my contacts database. Cardhop’s quick entry system makes all the difference.

You can download the script here:

KM Script Download

And see the script in action in the below video. Note there is a discount code for the Keyboard Maestro Field Guide at the end of the video.

Also, here’s a screenshot of the script.

Last Call for Introductory Pricing on Keyboard Maestro Field Guide

The response thus far has been pretty amazing for the Keyboard Maestro Field Guide. Thanks to everyone that purchased it. I really enjoyed making it and I’m happy it is resonating. I’m already hearing about some cool automations that customers have created and incorporated into their daily lives.

If you are thinking about buying the Keyboard Maestro Field Guide, now’s the time. The introductory price ends this weekend.

Window Management with Keyboard Maestro and Screencast

A few weeks ago, I posted about my new two-screen setup. I explained that I have started using the second monitor as a "reference" monitor to the right of my iMac screen. I’ve received emails and questions in the forums about how I manage windows between the screens.

I explained in the post that I do use Apple's Spaces feature—although to a much lesser extent—with the new two-screen setup. What I didn't explain, however, is how I like to manage windows using keyboard shortcuts and our old friend Keyboard Maestro.

 

First, a Word about Window Managers

There are a lot of applications for the Mac that will manage windows for you. They come in a variety of shapes and sizes and range from simple to complex. You can also manage windows with an AppleScript, if that's your thing. If I had to pick one window manager, it would be Moom. I've used it for years, and I still have it installed despite the Keyboard Maestro shenanigans listed below.

 

Keyboard Maestro FTW

I think Keyboard Maestro is an ideal tool for window management for several reasons.

First, it is hyper-customizable without being hyper-difficult. 

The second reason for using Keyboard Maestro is that it does so much more. I am a big fan of "stacked" automation. This is the idea that you take two relatively simple automation tasks that you often perform in order and stack them together in the same script. For example, when I want to plan a day, I often open up OmniFocus and my calendar, and I arrange those two applications in a certain way that makes it easy to see data in both. Moreover, in OmniFocus I will open particular tabs so that I can click through them quickly. I demonstrate this below. 

These are all simple automation steps, but when strung together (or stacked), they become a powerful tool to manage my day. Using Keyboard Maestro for window management, not only can I make simple scripts to move the current window to the left side of the screen, but I can also stack more complicated scripts that create a working space based on the task at hand. Since I need Keyboard Maestro to do that second part, it might as well do the first part as well.

 

And Now, a Screencast

So now it's time to dive into the technical details of how I do all of this. For that, I think a screencast is a lot easier than a bunch of words. Here you go.

 

The YouTube Plug

You may note with the above screencast that I’m distributing it through YouTube. I have finally set up a YouTube channel for MacSparky, and I'm going to be adding more content going forward. For that reason, I respectfully ask that you subscribe and push whatever other buttons you're supposed to push to make me feel special.

 

Finally, Some Screenshots

Screen_Shot_2018-08-20_at_12.45.10_PM.png
Screen_Shot_2018-08-20_at_12.46.02_PM.png

Grabbing a Safari Link with Keyboard Maestro

Keyboard Maestro is a really powerful tool for automating work on your Mac. Here's a simple Keyboard Maestro script I use every day. When you write for the Internet, you often include links. This little script, upon me activating the magic keyboard combination, jumps to Safari, selects the URL (⌘L) then copies the link (⌘C), then jumps back the app from which I triggered the script and pastes the link at the current cursor location (⌘V). I've been doing this so long that it feels second nature. Below is a screenshot of the script along with a short video of the script in action. Enjoy.

Here's a little Keyboard Maestro script to automatically grab and paste a link from Safari.

Keyboard Maestro Version 6

kmicon.png

 Keyboard Maestro is one of my favorite Mac utilities. They’ve recently released version 6 and it is a really great update. If you’re unaware of this application, you need to check it out. It lets you automate nearly anything on your Mac. The new version includes some great nerdy fodder. For instance, you can now trigger a macro when you plug in a USB device. Do you have a ScanSnap scanner and want the ScanSnap software to load when you plug it in? Keyboard Maestro can make that happen. The new version also can run macros when your Mac connects to a new network. For instance, if you want certain application to run when you arrive at work, Keyboard Maestro can do that. I also dig the new icon.

That’s just the tip of the iceberg. We are going to do an updated Mac Power Users show on this application. (We last covered it in 2011.) If you want to get ahead of the curve, check it out now. If you bought version 5 from the Mac App Store (like me), you need to transfer your license and buy an upgrade from the developer directly. There is no way this app could comply with Apple’s sandboxing rules.