How to automatically post to Scriptogr.am when you post to Tumblr using IFTTT, Hazel and Dropbox.

I don’t know why anyone else would need this, but I’m doing it so I have a backup of my blog just in case anything happens to Tumblr.

1. Set up the IFTTT receipe.

If This Then That is a powerful service that let’s you automate some of the stuff we do on online services.

If you don’t have an account yet, sign up. 

Then, grap this receipe: https://ifttt.com/recipes/94892

What it does is check your Tumblr for any new post you made and creates a text file in the Scriptogr.am folder in your Dropbox.

2. Go post something! Unfortunately, this only work for new posts. As far as I know, there’s no way to back up your old Tumblr posts yet.

3. IFTTT checks your blog for new posts every 15 minutes. You can log in and tell it to check immediately - it will take about 5 minutes for IFTTT to grab your new posts. 

We now have a bunch of text files in the /posts folder, but nothing’s showing up on our blog. What we need to do is rename all the text files so their extension is .md — This is because as of right now, Scriptogr.am doesn’t support .txt files. 

Luckily, this can be automated with Hazel

After you’ve downloaded and installed Hazel, set up a rule that looks like this:

image

If you’d prefer not to use Hazel, you could do it manually or using Automator.

4. Log in to Scriptogr.am and hit Synchronize. Your posts from Tumblr should show up.

Issues

  • Getting the date of the posts to show up doesn’ work. That’s because IFTTT uses a different date format than Scriptogr.am. The “Date:” tag is still written, so if Scriptogr.am adds support for other date formats your old posts will be ready. There may be a way to automatically convert the date strings, please email me if you know how.

  • Image and video posts don’t work perfectly yet - this is because Scriptogr.am won’t allow empty titles.

  • I found something that I think is a bug - if a post ends with </p>, Scriptogr.am will break the last opening <p> tag. Not sure why this happens. To temporarily fix this I added an empty <b> tag with a hard coded space (so IFTTT doesn’t delete it) after the final </p>, like this: <b>&nbsp;</b>

This post on my Scriptogr.am





‘I read,’ I say. ‘I study and read. I bet I’ve read everything you read. Don’t think I haven’t. I consume libraries. I wear out spines and ROM-drives. I do things like get in a taxi and say, ‘The library, and step on it.’ My instincts concerning syntax and mechanics are better than your own, I can tell, with all due respect. But it transcends the mechanics. I’m not a machine. I feel and believe. I have opinions. Some of them are interesting. I could, if you’d let me, talk and talk.

David Foster Wallace



Why should the Arabs make peace?

“If I were an Arab leader I would never make terms with Israel. That is natural: we have taken their country. Sure, God promised it to us, but what does that matter to them? Our God is not theirs. We come from Israel, it’s true, but two thousand years ago, and what is that to them? There has been antisemitism, the Nazis, Hitler, Auschwitz, but was that their fault? They only see one thing: we have come here and stolen their country. Why should they accept that?”

— David Ben-Gurion (1886 – 1973)


Clouds build up over the Victoria Harbor before a storm in Hong Kong.

Clouds build up over the Victoria Harbor before a storm in Hong Kong.