Post to WordPress from Ulysses

Ulysses does a lot of things right as a writing tool. But it’s not designed to be a HTML or Markdown editor. It’s also not able to post directly to a blog.

But its export friendly nature makes it easy to build helper apps. So I wrote a Ruby script that will post to a WordPress blog. It’s also fast. It usually takes less than 5 seconds. That’s faster than the WordPress post editor loading time.

Being able to quickly write scripts like this is one of the reasons I’m convinced that Ruby was the language I was waiting for. It works in the same way I think.

NOTE: I’ve updated a few things, check this post for more information.

[gist https://gist.github.com/8ae067b639caf96eafec/04495034876fedeb83b51b43e6b6d5df6c9a3069]

One other thing this script does is add target="_blank" to each external link.

The script expects a sheet to be formatted a certain way. Make sure to remember the following:

Here’s how the top of this document looks.

This script will also work in an Automator action. The output is notification center friendly. Here’s the steps:

Create a new application.

NOTE: I’ve updated a few things, check this post for more information.

[gist https://gist.github.com/38db468940e0c8ea7320/c3f39d429447ae258e9ba054038a110721cc0c39]

Add a Set Value of Variable action. This will capture the output of the script.

This was the a utility that I’ve wanted for a while. So I finally wrote one. Comments about the code are best posted to GitHub, and contribuitions are welcome.

2015-04-09
permalink

<a href="/category/blog/">blog</a>

<a href="/tag/howto/">howto</a> <a href="/tag/ruby/">ruby</a> <a href="/tag/software/">software</a> <a href="/tag/ulysses/">ulysses</a> <a href="/tag/wordpress/">wordpress</a>