Syncing Drafts with Obsidian

Hi all,

How can I have my drafts automatically synced with Obsidian? Meaning when I write a note on Drafts it automatically goes on Obsidian rather than me copying it.

Thank you!

Drafts does not store content in files whereas Obsidian does, so you cannot sync drafts automatically.

You can, however, have an action that exports a drafts into an Obsidian vault. When you have completed your draft, you would select the action to trigger the export. Drafts doesn’t auto trigger any actions so this would have to be manually triggered; though I guess it is possible to schedule actions to run externally to Drafts, but this wouldn’t be able to assess the “state” of a draft.

There are a number of posts already that cover how you could use actions to export to Obsidian.

This thread:

Second part of this response:

This thread:

Hope that helps.

2 Likes

Yes it does thanks! Haven’t worked out all the kinks but thanks for the guidance.

I’m very interested by this topic.
Yesterday I discovered that Drafts cannot save (export) a drafts note into a folder outside its container (in iCloud). It is not due to Drafts but to IOS.
My intention was to save drafts notes with an action into the obsidian folder/vault.
At least it is not possible outside Drafts folder, at least in IOS.
So I made up my mind: whatever I write with Drafts for Obsidian, is considered as a draft or an inbox item.
And I think it is a good concept.
So we add an integration step 1) write in Drafts 2) export in, a folder (could be in dropbox) 3) copy in a folder within obsidian vault 4) evaluate and adapt each note to integrate into obsidian.
I already placed my vault into a 1Writer folder but Drafts is better to create notes in IOS, I don’t see the advantage of 1writer

If you really needed to do this there are apps such as Toolbox Pro (for Shortcuts) and Scriptable that support folder bookmarking. This feature allows you to work around the limitation imposed by the sandboxing.

Drafts technically can save outside is own folders, but this involves manually selecting a destination each time.

The advantages are that 1writer works directly with the file system such that it is therefore easier to view and edit files in the vault. Drafts can do it, but it is a little bit of extra effort. Round tripping modifications via import/export in Drafts is certainly not as easy as just saving in 1writer; though custom actions can help Drafts achieve easier round tripping.

I have a few folders in Draft’s iCloud Drive folder which are watched by Hazel. Hazel then either triggers an AppleScript or moves the text file to a different location (usually Google Drive).

Perhaps Hazel might be of use to you?

I use the same method with files created by Shortcuts. In all cases, it works very well.

That being said, I do have an always on Mac Mini running to keep this active at all times.

My obsidian wiki is in a free Dropbox account. I just have actions that save to Dropbox, with a particular tag and then I have a process at the end of the day to go and process new Orphans in Obsidian with that tag.