One of the benefits of TextExpander now being able to use Javascript is that you can make much more powerful scripts that run both on the Mac and iOS. One benefit of 1Writer using Javascript and being popular with the technocrats is you can easily adopt their scripts for TextExpander and use them in other apps.

Brian Jones recently published a 1Writer script for changing selected text to the title case format of John Gruber.

By removing the last three lines

var selectedText = editor.getSelectedText();
var formattedText = toTitleCase(selectedText);

and replacing them with


it can now be used with TextExpander on iOS or Mac.

The code on Github.