Creating new blog posts with an Alfred workflow

One of my favourite new features of Alfred v2 is the new Workflows framework. It allows you to chain together scripts and actions based on a trigger.

I’ve created a Workflow that makes creating a new blog post quick and easy. I use Kirby so all my blog posts are stored in text files. I can now open Alfred, type post followed by the slug of the post I want to create and it will automatically do the following:

My Alfred blog post workflow

It works by running the following bash script:

You can download the Workflow here.

Note: You’ll need to modify the blog path in the bash script.

Hopefully you find it useful. I’m no bash expert, so I’d to love to hear feedback or suggestions. I’m on Twitter: @marcjenkins.

Update (03/04/13): Matthew Guay has tweaked the Workflow above and added some extra features. Check out his post: Publish to Kirby from Alfred.

Published on
Tagged:

Related articles


Marc Jenkins

I'm a freelance frontend & WordPress developer based in Birmingham, UK. I build fast & beautiful websites and work with businesses and agencies. More about me.

Interested in working with me?

Say hello or check out my work