5 November 2021

I’m trying out iA Writer on my Android phone. I had it on iOS way back, not long after it came out, if I recall correctly. The only reason I didn’t use it more was because the file handling didn’t work for me. And once I got in to using Drafts, where I could set up a workflow just how I liked it, there was no going back.

It’s perfectly fine to write with, however, it is doing something weird when I save. In order to run my Python script that saves a post with all the correct formatting, I start with a basic template file. I overwrite any text within that file, normally the previous post. But when I open the file there are a few lines from the previous version still there, at the bottom. Go figure.

I think I will try tweaking the Python script to clear all text from the template file once it has been copied to the formatted .md file 1. See if that does the trick.


  1. Just three lines of code needed using .truncate(0) to remove all text from the file. [return]

1 November 2021

To get to November without so much as a sniff of a frost. I couldn’t be certain, but that’s a first as far as I can recall.

30 October 2021

This a test post to see if my Python script works correctly; copies this text, adds the front matter and saves the file with the correct name. If you are reading this on the blog, then all went according to plan.

22 October 2021

With my move to an Android phone, the app I shall miss the most is Drafts. I have a ton of actions that I’ve made, although there are only a handful I use regularly. Replicating what they achieve will take some work but I hope my recent efforts with Python are going to come in handy.

Saving blog posts will be top of that list. The Drafts action I use adds the front matter with prompts for the url and tags, then saves it to Dropbox. Writing a Python script to enable me to do the same on Android - a weekend project?


Stephen James

Minding the gaps


© Stephen James 2021

Powered by Hugo & Kiss.