Create a .com Button

Ben Brooks recently sent the following Tweet requesting a .com button for his Mac. Considering how many times a day I hit those four keys, it seemed like a damn good idea.

Thankfully this was fairly easy to accomplish and now my Mac has a .com key of its own. Actually, it has two, one in Keyboard Maestro and another in TextExpander. The first is a bit more programmer friendly, but requires that you hit two keys at the same time. The second requires a single keystroke, but won’t work for anyone who codes.

Keyboard Maestro – This should work for anyone in any situation. Create a new Macro under the hot key command-. and have it paste in “.com”. Keep in mind that you can set your own hot key.

It should look exactly like this:

TextExpander – While this won’t work for anyone who uses the back tick to write code, it should suffice for those of us who have never, ever used the key. This one is even easier, just create a snippet that replaces ` with .com. Here is what it should look like:

One small thing to keep in mind, you need to make sure that the group settings for whatever folder the TextExpander snippet lives in is set to expand after “Any Character”.

While saving three characters might be a silly example, it is kind of nice to have a .com key on my Mac and this same concept could easily be applied to anything you can imagine.

Ben took this a step further and modified the the Keyboard Maestro macro to only work in Safari. Nice touch!Update:

4 Responses to Create a .com Button

  1. Advanced common sense, I give You that!  I tweaked it for myself by putting it in a TextExpander-Group that’s (’cause Ben Brooks has a point there…) set to work only in the browser and (yes) Alfred and gives me a “www..com” with the cursor set in the middle. Works like a charm and speeds things up even more significantly.

    • Stupid solutions to simple problems… that’s my wheelhouse :)

      Since I never actually use the key, I kept it in everything. It’s especially useful when providing URL’s in emails and in other writing. I’m a launchbar guy myself, but I love that functionality where it gets the web address going for you!

  2. I never type .com though? 

    Safari will add the .com to a site automatically. CNN.com? I just type “cnn” and hit enter. I only ever type it on the very rare occasion that I’m adding something after the .com 

    Seems like 95% of the cases I am adding something after .com, it’s a twitter username, so I press “TW” rightarrow (because it’s autocompleting to twitter.com/) then paste the username.It’s a good thought, but I guess I never use it enough to benefit from this.

    • Honestly, the .com is just one of a million options. In my case, the .com makes sense, but .it’s is incidental. You could really make the macro out to be just about anything.

Leave a reply