MarsEdit to EagleFiler

Wednesday, September 19th, 2007 @ 3:58 pm | AppleScript, Mac

Update (11/24/07): EagleFiler 1.2.6 now includes built-in support for capturing from MarsEdit that expands on this capture script. That capture script is located inside the EagleFiler application, in the Contents/Resources/Capture Scripts/ folder. More information is available here.


With MarsEdit 2.0‘s release, I’ve decided to re-evaluate my post management scheme. Previously, I created my posts in BBEdit, then moved them over MarsEdit via an AppleScript. I did this because I wanted to have copies of my posts archived on my hard drive and not lost whenever I refreshed my weblog in MarsEdit. A downside to this approach is that I end up underusing MarsEdit’s Draft’s functionality — I’d either keep the BBEdit window open the whole time I was working on a post or I’d save the post to my Posting directory and have to remember finish editing it at a later date.

My app tool-chain has shifted a bit over the last 3 years, so I now have a few more options at my disposal. One of those is EagleFiler. My new workflow is to compose and post in MarsEdit, then move the completed post of to Eagle Filer. To facilitate this, I’ve written an EagleFiler capture script for MarsEdit — to archive my post, I simply need to hit F1.

The script’s a bit long to include here, so I’m just going to post it for download.

Download MarsEdit Capture Script

To use this script, save it to ~/Library/Application Support/EagleFiler/Capture Scripts/, creating the last folder if necessary.

There are a few notes about what information is available for capture. First, you can’t capture a draft from the main MarsEdit window, only from the individual post window. Second, drafts which you have saved locally will have a value for date published. I believe this is the date the draft was first saved. Third, posts captured from the post window will not have a permalink value. Hopefully, future updates to MarsEdit will allow me to rectify at least a few of these.

There’s certainly room for some individualization in this script. Though I’ve stripped out the modification for public usage, my personal copy of this script adds some custom tags to each posting and sets BBEdit as the file creator. Another modification I’ve seen is adding the category information to the text of the posting. Additionally, you could add support for creating EagleFiler tags out of post keywords in addition/in place of post categories. Since WordPress doesn’t support keywords, I didn’t implement this.

If you do edit the capture script after installing it, you’ll need to restart EagleFiler so the application will see the changes.

I wrote and tested this script for use with WordPress blog. As far as other blogging packages are concerned, the script appears not to fail, though I can’t guarantee it’ll actually work.

5 Responses to “MarsEdit to EagleFiler”

  1. C-Command Blog - MarsEdit to EagleFiler Says:

    […] Blair has posted an AppleScript that lets you press the capture key to archive your MarsEdit posts in […]

  2. Red Sweater Blog - MarsEdit to EagleFiler Says:

    […] MarsEdit to EagleFiler […]

  3. links for 2007-09-23 « Amy G. Dala Says:

    […] raoli.com » Blog Archive » MarsEdit to EagleFiler (tags: osx software blogging) […]

  4. raoli.com » Blog Archive » EagleFiler and MarsEdit 1.2 Says:

    […] you’ve tried using using my EagleFiler Capture Script with MarsEdit 1.x, you’ve probably noticed that it doesn’t work — EagleFiler […]

  5. raoli.com » Blog Archive » EagleFiler 1.2.6 Says:

    […] EagleFiler 1.2.6 has been released and it incorporates the work I’ve did on the MarsEdit capture script.1 […]