My blogging engine is the static site generator Jekyll and I’ve come to love it. In my attempt of being able to blog on my iPad at some point in time, the first plugin I set up was Olov Lassus smart Markdown references plugin.
To shed some light on why this is a great plugin for mobile bloggers here’s a one sentence explanation about what it does:
You can gather your markdown reference links in one file and refer to them up anywhere inside your Jekyll installation, be it posts or pages.
The setup is as simple as it can get, you put the plugin in your plugins directory, add a file named
_references.md in your root directory and you’re done.
Here’s an excerpt of my
[Gabe Weatherhead]: https://twitter.com/macdrifter
[Ben Brooks]: https://twitter.com/BenjaminBrooks
[Sven Fechner]: https://twitter.com/simplicitybliss
[Brett Terpstra]: https://twitter.com/ttscoff
[Ethan Schoonover]: http://twitter.com/ethanschoonover
[Federico Viticci]: http://twitter.com/viticci
[Michael Schechter]: http://twitter.com/mschechter
[Keyboard Maestro]: http://keyboardmaestro.com
So everytime I want to link to one of Gabe’s post I could write something like
"This is a link to [Gabe's Twitter account][Gabe Weatherhead], follow him!" and I don’t have to think twice about what his Twitter handle is.
It’s a great plugin and it looks tremendously useful. The only downside is that your Markdown documents won’t be useful outside of Jekyll since the links are broken. That is why I spend some significant time today to replace all references with real links. I could have kept the plugin as a backup solution, but I figured once I got a working iPad workflow I can always install it again.
Why I write about something I just abandoned? Well, like I said it’s a super nifty plugin and I think some of you Jekyll bloggers might like it. In conjunction with TextExpander for iPhone it certainly has some serious nerd potential.
A couple of days ago David Sparks wrote about how to put your Mac to sleep with iOS Drafts. His post reminded me of the fact that I haven’t yet given any credit to Keyboard Maestro Control for iPhone. It’s a little helper which enables you to trigger your macros from your iPhone.
If you’re a Keyboard Maestro user and haven’t checked out this free add-on to the world of Keyboard Maestro here are some examples for you:
Locking, Unlocking and sending your display to sleep
Although it hasn’t been updated recently I use an utility application called Lock Screen 2 which mimics the iPhones slide to unlock mechanism and brings it to the desktop.
You can use it with the keyboard or a Magic Trackpad. In addition you can assign a custom pattern, for instances in the screen shot below I used the combination of holding down
⌘⇧ and then sliding over the keys from A to G. When using the Magic Trackpad you can also specify which hotkey combination to hold down and with how many fingers you’d have to perform the slide gesture to unlock the screen.
Here are the macros for locking and unlocking the device. The hotkey on the left is the shortcut I assigned to lock my screen whilst on the right the foremost mentioned slide gesture get triggered to unlock the screen.
If you don’t want to purchase another application you can also lock your Mac with this shell command:
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
With this solution it isn’t possible to unlock the screen with Keyboard Maestro Control since all this piece of code does is triggering same behavior like the build-in Fast User Switching menu and you’ll end up on the login screen of your Mac.
Still, there are other free solutions, c.f. this app.
If all you want to do is sending your display to sleep you can use a hotkey action in Keyboard Maestro to use the system wide shortcut
⇧^⏏ or the build in Sleep Screen action:
The icons I used for these macros are from the Iconic set by P.J. Onori. Good ressources for additional Keyboard Maestro icons are iconmonstr and Iconfinder.com, just to name a few.
Log Out, Sleep and Shut Down macros
Often times in the evening when I’m on the couch I wait for my Mac to finish a job. After the task in question has finished I want my Mac to shut down or go to sleep. If I know the ruff time frame I just fire up one of the macros on my iPhone.
Starting and Quitting a Menubar Application
There are some applications that need to run on the Mac to use their iPhone counterparts. I don’t want them running all the time, so a macro to toggle them is a good solution for these kind of apps.
In my case it’s (1) AirVideo which enables me to stream movies from my Mac to my iDevice and (2) AirFoil Speakers which makes your Mac an Airplay receiver.
The solution is pretty simple. Go to one of the best ressources of the web for all things related to scripting (aka Justin Lancy’s’s site) and download the Toggle an Application On / Off AppleScript (which I mentioned before but since it’s one of my favorites I can’t praise it highly enough). The first and last step: add your application in the specified line and put the whole script in an Execute AppleScript action.
Start SuperDuper! Backup
I haven’t set up any scheduled SuperDuper backups since I don’t leave my Mac running (or sleeping) over night. But there are enough times over the week to run my backups. So, in the application I configured the Copy tasks I usually perform and saved them. Then I initiate them from my iPhone with a macro that looks like this:
- Read Gabe’s post where he explains the basic setup of Keyboard Maestro Control and gives some use-case examples: Remote Macro Execution.
- I’m a big fan of MyPhoneDesktop. The Mac app comes with a shortcut (
⌘CC) which sends your clipboard to the connected iDevice. I use it to send me a screen shot of an application to my iPhone. It’s not as simple as calling up iTeleport, but if it’s what you want Keyboard Maestro can make it happen.
- If you don’t want to spend money on Panic’s Prompt and have a Mac which is always on Keyboard Maestro Control is a great and cheap alternative if you just want to call up some scripts.
- Force empty your Trash. The macro could look something like
sudo rm -R ~/.Trash/* + RETURN + USER PASSWORD + RETURN (I don’t recommend it since you’d have to put your user password in Keyboard Maestro).
- Set up some Volume controllers on your iPhone – a mute macro could come in handy.
- Switching from your speakerbox to headphones.
- Force quit stubborn applications.
- Flick through the System Control actions in Keyboard Maestro and see if there’s something useful in it for you, c.f. setting the network location or switch user accounts.
Last words: I really like Keyboard Maestro Control and hope Peter will find the time some time in the future to give the app an update – just iPhone 5 support alone would be nice enough for me.
Keyboard Maestro 6 brings a lot of new features, some of them slipped my attention and wouldn’t it be for Gabe’s post about the update I’m sure it would have taken me a couple of months to figure out that there is a new option to export macros as a screen shot.
As a blogger who frequently posts about Keyboard Maestro I felt like this needs to be one of the first macros to set up in the new version.
I tried building a macro which outputs an image with the macro’s name automatically, but haven’t found a token which could work for such a scenario, so I went with a user input action. All I need to do is select the macro and fire up
⌘⇧S, name the macro and I get the screen shot saved to my desktop:
But what if you prefer a more concise view of your macros? The overhauled default view of macros (i.e. not the editing view) is really nice without the old Keyboard Maestro trademark blue bar and goes well with the design of any blog. It also takes up less space:
If you like that view better you can add another Select in menu action to the top of the macro. I already had a Toggle macro editing macro, so all I had to do was adding an execute macro to trigger it.
Here’s what the toggle editing macro looks like:
On a rare occasion I use the classic link post format. This is such a rare occasion:
Keyboard Maestro 6 is live.
Head over to the site to find out what’s new.
By the way, Keyboard Maestro now officially uses Jono Hunt’s fantastic icon.
And just in case you haven’t noticed… I really like this app.