This macro creates a new note file in NVAlt (i.e. Dropbox) and immediately opens it in Sublime Text for editing.
The “touch” command creates a new empty text file and then I use the Sublime CLI to open it for editing.
Michael Schechter recently posted a macro to embed nvAlt linked files in OmniFocus. He will probably be the first to admit that it’s less than ideal. OmniFocus doesn’t recognize the links properly. I’ve played with something similar but ended up linking directly to a shared Dropbox document. That also was less than ideal.
About a month ago I updated my process to use TextDrop instead.1
TextDrop can link to a Dropbox folder of notes or to an individual note in Dropbox.
This macro requires the Sublime Text CLI to be configured. I followed the instructions here with a minor modification. Keyboard Maestro does not recognize the command in usr/local/bin so I created it in /usr/bin:
sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/bin/sublime This provides access to Sublime Text from the terminal on a Mac. My command is
sublime some instructions use the default name subl.
This macro launches Sublime Text with my NVAlt folder as the source:
As pointed out in the comments to this post about using Sublime Text to write, it’s annoying that it will not use the OS X spell checker and dictionary built into other text editors.
For example, here’s the dictionary lookup in NVAlt:
Sublime Text 2? Not so much:
Here’s a quick and dirty Keyboard Maestro macro that gets around the gap and provides a universal dictionary macro in any app.
I regularly switch my Safari user agent to "iPad" so I can play embedded YouTube videos without errors. It seems that many embedded videos still require flash if they see I am using Safari. Switching to the iPad user agent causes the videos to be played as HTML5 without need of the flash suppository.
To aid in this switching, I developed a couple of Keyboard Maestro macros to allow me to swap at will with just the hot key combo ctrl-opt-U.
A short macro I use to convert URL's into Markdown image links. This macro leverages Keyboard Maestro's Regular Expression matching in the Search and Replace action.
I've blatantly stolen John Gruber's regular expression for matching URL's which is the best I've tried.
A tiny feature of Keyboard Maestro that I rarely (if ever) see used is the regular expression matching and the regex replacement token in the search and replace actions.
An alternative macro to resize images over at TheGeeksCompanion.
I still prefer the flexibility of my macro but for many people, simpler is better.
Here's a macro to take advantage of the new Keyboard Maestro 5.3 Image actions. This macro processes an image (or several) selected in the Finder. If the image is larger than 600px wide, a new scaled copy is created that is 600px wide. But the trick is to scale both dimensions relatively, not just squash the image on the X-axis.
The macro is a bit long but most of it is straight forward.
I'm just catching up on my Keyboard Maestro reading. There's some good stuff happening with it these days.
Eugene Gordin has been evolving some really nice macros to fit some unique use cases. This one zips a group of files and shares them on Dropbox for a limited time. Hazel does some file clean up at a set interval to remove the shared files. A really nice way to do it.
Prompted by the recently released Bang On iOS app1, I decided to make a macro for Keyboard Maestro that could accomplish the same thing with Safari.
This macro is really just a series of scripts, so it could easily be converted to a LaunchBar plugin. The macro grabs the current URL and looks for a query string. It then converts the query string to one of several DuckDuckGo bang searches.