Import notes from Drafts (Mac)

Operating system

macOS

Joplin version

3.0.1

Desktop version info

Joplin 3.2.13 (dev, darwin)

Sync target

Joplin Server

Editor

Markdown Editor

What issue do you have?

Hello everyone, this is my first post.

I looked at the ways to import from third-party apps (Importing notes from other notebook applications), pretty much all of them are there except Drafts for Mac.

I know I could import the files as txt, but I would also need to import the creation and modification dates of the notes... so the Json format (with which I exported the notes from Drafts) would be perfect.

How can I import them?

Thanks a lot

1 Like

If you can share the file (here or via PM) and the structure isn't too complex, I could add it to the note conversion tool jimmy.

There seem to be also some custom scripts for conversion (like this). Maybe someone else has some experience with them.

1 Like

Hello @Marph thanks for your answer.

You can find attached a Drafts for Mac Json export file. Official website of Drafts for Mac is this: https://getdrafts.com/

DraftsExport.draftsExport (1.6 KB)

Have a look.

Thanks a lot

The format isn't too complex, so it was possible to implement support for drafts in jimmy release v0.0.52. Here are the basic instructions:

The idea is to convert Drafts to Markdown + Front Matter and import this to Joplin.

One of the example files looks in Markdown + Front Matter like:

---
created: '2025-03-24T19:55:15+00:00'
tags:
- cif
title: 2025-03-24 19:55
updated: '2025-03-24T20:00:04+00:00'
---

This is a test note 1 from Drafts for Mac Version 47.1. Thanks a lot for your efforts :)

Feel free to ask if you have any questions.

1 Like

Hello @Marph, first of all, thanks a lot for your patience and your efforts.

:clap::clap::clap:

I tried Windows client and tried to convert a few exported notes.

Everything works very very fine, but there are two things to fix:

  1. Imported notes has been created without the same timestamp, so import time-date has been wroten as the note time-date.
  2. Title notes should be different than date-time. Eg. system can take first row of text inside note.

Point 1 is most important, of course.

Again, thanks and thanks to let us possible to migrate from Drafts Mac to Joplin effortless

Edit:
3. Tags has not been created nor imported
4. Notes has been imported without HTML inside or other code, only pure text

  1. Imported notes has been created without the same timestamp, so import time-date has been wroten as the note time-date.
  1. Tags has not been created nor imported

This might be due to missing front matter. Could you check if you:

  1. Converted the notes with front matter, by appending --frontmatter joplin to the jimmy command.
  2. Imported with front matter, by using File -> Import -> MD - Markdown + Front Matter (Directory) in Joplin.

If the issue still occurs, I can check if there was a regression in the front matter format.

  1. Title notes should be different than date-time. Eg. system can take first row of text inside note.

I didn't take the first row on purpose, because very long filenames could be created that can yield further issues. I could use the first row with a length limit of 80 characters if this is better suited, though.

  1. Notes has been imported without HTML inside or other code, only pure text

This is because the example export file doesn't contain HTML/code. I can try to add it if you can provide a corresponding example file.

I followed this guide:

Running

jimmy-cli-windows DraftsExport.draftsExport --format drafts

Sorry I'm little bit confused, where I have to append:

--frontmatter joplin

Thanks

Edit:
I used

jimmy-cli-windows DraftsExport.draftsExport --format drafts --frontmatter joplin

And everything worked fine

About note title, it could be intereseting to limit to 80 characters, sanitizing eventually from charachters that can be not compatible with title format.

This is implemented in the latest release v0.0.53.

It looks great @Marph Thanks a lot for your efforts!!

1 Like