My first successful script has been written

In case you hadn’t noticed from my last post, I have created a script that automagically generates a blog post using all my kubi.tumblr posts from the last week.

If you’re interested in taking a look at it, it’s an Automator script with a bunch of AppleScript modules thrown in. The Automator portions handle downloading the RSS feeds, the AppleScript sections do some text editing and deal with MarsEdit.

Automator Script

Next step is to get it set up on a timer and have it run automatically each week.

tubmlr%20post

Edit: I’m getting a weird

*** -[PSEntry entryEnumeratorSortedBy:]: unrecognized selector sent to instance 0x13dd440
error, but it only happens part of the time. Please hold off on using this script for anything business critical until this issue can be rectified.

Edit 2: I fixed the issue and updated the script. The original script pulled in the last week’s worth of entries from Tumblr and saves it as an Automator variable. For some reason this variable doesn’t work correctly when I attempt to access it later in the script. What I ended up doing was just pulling in entries from my blog twice, once to get the permanent link, once again to get the title.