Rob Trew's Scripts

If you don’t know Rob Trew (@complexpoint) then let me introduce you to some of his work. He creates gorgeous scripts for making the data in OmniFocus, and many other apps, portable. For example, his latest work allows for export of OmniFocus data to iThoughts HD, indented text, Markdown and more. He’s now setting his sights on FoldingText and magic is starting to happen.

The Podcaster Macro

Now that I am some sort of “podcaster” I’m realizing how annoying it is to record through Skype on a Mac. Skype is offended by every other application. It’s like a jealous wife insisting on being the the only application in my life. To accommodate Skype’s temper tantrum’s I’ve created several macros to prepare for a recording session. I’ve already written about my Keyboard Maestro macro to toggle the audio input and output devices.

Renaming Finder Items Link

A very nice workflow at for reliably renaming a set of known files with new names. By way of Clark's Tech Blog

Python and P-lists Link

I learned five things from this 554 word post by Dr. Drang about determining the default browser on OS X. There's a Python library for reading plists There's a Python library for creating temp files that auto-delete The InternetConfig tool is still around in OS X 10.7 Dr. Drang uses AppleScript like I do, as a wrapper for Shell and Python I invested in learning the right scripting language for the distopian future of AppleScript

FTP Files to WordPress by Email

Yes, another hack to make this site easier for me to manage. I post a lot from Simplenote now. While this is very efficient for making link-posts, it makes it rather challenging to create a post with images. Images are stored on the Macdrifter host in the standard WordPress content directories but I need a URL to create the image link reference in Simplenote. I have used GoodReader in the past to upload an image to the server, but I have to manually create the URL for the image.

Plain Text to OmniFocus

This is an oldie and a goodie. Rob Trew makes some damn fine AppleScripts for getting tasks in and out of OmniFocus as well as some great DEVONthink tools. For all my grief for AppleScript, his work is an excellent model of the power of scripting on the Mac. I also love the structure of his scripts. Unlike mine, he properly designs his scripts with methods and descriptive structure. This is how you write an AppleScript:

Rich Text in AppleScript and Shell Scripts Link

A nice simple combination of pretty basic shell commands to pipe formatted text to the clipboard. A bonus tip to convert Markdown to RTF on its way to the clipboard too.  Nik's Crappy Blog

BBEdit and Markdown Insert End Reference Script

As mentioned previously, I have a love-hate relationship with AppleScript.1 It’s an insanely bad language for the importance it has garnered on my system. But sometimes it’s all I’ve got. In this case, I wanted a pop-up menu of all of my end references in the current BBEdit document. I took it a bit further and ended up with something that I truly like. :::applescript try tell application "BBEdit" set results to find "^\\[.