Joining MarsEdit and Dropbox

I use MarsEdit from Red Sweater Software as my exclusive blogging tool on the Mac and have over the last couple years.  I tend to write lots of draft posts on my desktop Mac Pro that never get published or I work on them when I can before pushing out to my WordPress blog.

I also use MarsEdit on my MacBook Air when I travel or even if I am working on the couch in the evenings.  All of the drafts in MarsEdit are saved locally on the computer I am going the writing and once I want to be able to edit from the other computer I end up pushing as a draft to the blog and pulling it down via MarsEdit.  This is a tedious task and has problems.  I don’t know how many times I pushed up a draft and forgot I did a few days later only to work on an old draft locally.

I then had the idea of possibly setting up MarsEdit to save local drafts to Dropbox but there didn’t appear to be an option in MarsEdit to change the location of local storage.

But…there is usually a way to do anything.

The steps below worked great for me, you mileage may vary.  If Dropbox is installed in its default configuration then these instructions should work for you.  I configured my systems with my Mac Pro being the “main” system and my MacBook Air as the secondary.  I had local drafts on my Mac Pro but NOT on my MacBook Air.  If you follow these steps exactly and have local drafts on each system them you will lose data.

Without further ado, follow these steps.  I assume you know how to open a terminal sessions and feel comfortable typing command.

1. Make sure you quit MarsEdit from each system you are going to change the location of local drafts.

2. Find local MarsEdit drafts on your main system – A bit of spelunking reveals where they live in:

~/Library/Application Support/MarsEdit/LocalDrafts

3. Create folder for drafts in Dropbox.

mkdir ~/Dropbox/Library
mkdir ~/Dropbox/Library/MarsEdit

4. Move the local drafts from the main computer to Dropbox, enter these two commands:

cd ~/Library/Application\ Support/MarsEdit
mv LocalDrafts ~/Dropbox/Library/MarsEdit/LocalDrafts

5. Now let’s fool MarsEdit into thinking nothing has changed.  Symlink the old name to the new location.

ln -s ~/Dropbox/Library/MarsEdit/LocalDrafts ./LocalDrafts

Now, on each of the other machines start with step 6.

6. Remove the local draft folder (if it’s not empty and delete you will lose data).

rm -rf ~/Library/Application\ Support/MarsEdit/LocalDrafts

7. Time to fool MarsEdit here too. Symlink the old name to the new location.

ln -s ~/Dropbox/Library/MarsEdit/LocalDrafts ./LocalDrafts

Repeats steps 6 and 7 for each computer you need to share local drafts.

Once you start up MarsEdit on each of these machines, you should see the same local drafts.  If not, then double-check the steps above.

 

  • http://www.EngagingLeader.com/ Jesse Lahey

    Thanks for providing this information. Just to confirm, in Finder when I look in the LocalDrafts folder, it appears to be empty — is that what you see as well? (In other words, is it true that you can see the files inside the MarsEdit app but not in Finder?)

  • http://www.accidentaltechnologist.com Rob Bazinet

    The folder would be empty if you don’t have any local drafts, but..if you do then you should be able to see those posts. They are just text files.

    If you have local drafts but don’t see them, then you need to look for a different LocalDrafts folder. I know I had two on my system, one had posts in it but the other did not.

  • http://www.EngagingLeader.com/ Jesse Lahey

    Yes, there was a different LocalDrafts folder in a hidden directory. I redid everything based on your directions, and everything is working fine – thanks!

  • http://www.accidentaltechnologist.com Rob Bazinet

    Great, glad to hear it. I think there probably different locations based on where the app came from; i.e. Mac App Store vs. Red Sweater Software directly.