In recent weeks, a small community has started to gather around the idea of microblogging on personal sites rather than services like Twitter (or at least cross-posting from personal sites to Twitter). From what I can tell, Manton Reece is at the source of it. That was certainly where I first came across the idea anyway.
Yesterday Manton linked to a post of mine on the Realmac forums. In it, I detail the workflow I’ve been using for my own microblogging experiment with Typed.com—our very own blogging service (still in beta).
My first workflow involved IFTTT’s DO Note app and my home server but I didn’t like the idea of relying on an external element so eventually came up with this one and it’s been working very well for me.
The Drafts section is very simple. Create a new action with the following steps:
1. “Clipboard” → Make sure “Options” is set to “Replace” and that the template is set to [[draft]].
2. “URL” → Set the URL template to editorial://new/[[time]]?root=dropbox&command=Publish%20micropost.
Create a new workflow in Editorial named “Publish micropost” (important) with the following actions:
1. “Get Clipboard”.
2. “URL Escape”.
3. “Set Variable” → The variable name should be postcontent and the value should be Input.
4. Run Python Script → Be sure to replace YOURBLOGSNAME with the actual name you used for your site in Typed.com. For example, mine would be casualnotebook.
5. “Open URL” → “Open in” should be set to the in-app browser and “Wait until Loaded” should be on.
// Set the title
document.getElementById('id_title').value = "-";
// Set the content
var urls = window.location.href;
var content = decodeURIComponent(decodeURIComponent(urls));
var paste = content.substr(62);
document.getElementById('id_content').value = paste;
// Set the slug
var num = Math.random().toString(36).substring(6);
var slug = "microblog-"+num;
document.getElementById('id_slug').value = slug;
// Set the tag
document.getElementById('id_tags-0-title').value = "microblog";
// Publish it
7. “Open URL” → Set the URL to drafts4://.
Microposts are styled by adding the .micropost class to any post with the “microblog” tag (which is done automatically in the previous workflow). To add the class, add the following jQuery to your site’s body code.
As I said on the forum, this is just something I’ve enjoyed tinkering with as Typed.com doesn’t have an API yet. This’ll only be useful to you—for the time being at least—if you were one of our Indiegogo backers. And if that’s the case, then thank you!