Menu Close

How to Sync MarsEdit Local Drafts Between Machines With Dropbox [Mac]

Maredit sync with dropbox

MarsEdit is now my Mac blogging platform of choice. Until recently, when I wanted to work on MarsEdit drafts on multiple machines, my workflow consisted of uploading a draft of my post to my blog, and then downloading it to my other machine. With a little bit of tinkering, you can do away with such a workaround, and use Dropbox to automate your workflow.

Over in the MarsEdit forums, user “a.jaffe” spells it out. His steps involve setting up symbolic links that point to a folder on Dropbox. Here’s how you do it, broken down into step-by-step instructions. Kudos to a.jaffe for these steps.

1. Make sure you have access to both machines that you want to be able to sync.

2. Quit MarsEdit on each of these machines.

3. Go to the machine that has drafts that you want to save, and decide where you want to store the local drafts on your dropbox. Like the forum user, I used ~/Dropbox/Library/MarsEdit_LocalDrafts. I created that directory at this step to be safe, although I think the terminal steps below take care of it.

4. Open the Terminal app, and type each of the following pieces of text, one line at a time, hitting return after each line (don’t type the “>” symbol; that just signifies the start of a new line):

> mkdir ~/Dropbox/Library

> cd ~/Library/Application\ Support/MarsEdit

> mv LocalDrafts ~/Dropbox/Library/MarsEdit_LocalDrafts

> ln -s ~/Dropbox/Library/MarsEdit_LocalDrafts ./LocalDrafts

5. Go to your other machine, open Terminal, and type this:

> cd Library/Application\ Support/MarsEdit

6. If you want to save drafts from the machine that you’re on now, type this:

> mv -i LocalDrafts/* ~/Dropbox/Library/MarsEdit_LocalDrafts/

As forum user a.jaffe points out, “[t]his moves the individual draft files into the Dropbox LocalDrafts folder. You may find that there are some duplicate names. Depending on which you want to keep, you can say ‘y’ or ‘n’ to the resulting prompt – or go back and rename the file before attempting to move it, if you want to keep both.”

7. Now, still on the second machine, type this:

> rm -fr LocalDrafts

Please note that this deletes the old drafts folder. If you prefer, just copy it somewhere else as a backup.

8. Still on the second machine, type this:

> ln -s ~/Dropbox/Library/MarsEdit_LocalDrafts ./LocalDrafts

That’s it. I set this up, and am happily moving between machines, without having to even give the syncing a second thought.

If you have any MarsEdit tricks, let us know in the comments.