This took me a little while to figure out this morning… so thought I would share. I wanted to send from Mac Drafts to Obsidian vault…
Steps
- Since my Obsidian vault is in my iCloud folder, I first had to create a bookmark to the Obsidian vault. This is done through the Drafts preferences.
- Create a new Drafts action that uses the File Service
- Choose if you want to create, append, etc.
- Add filename information (be sure to change .txt to .md).
- Note you can also add a path, so in one instance I wanted files named with the date, to go into a folder named with a year.
- Name:
[[date]].md
- Path:
[[date|%Y]]
- Name:
- If instead you want the first line of the file to be the filename use the following settings:
- Name:
[[title]].md
- Template:
[[body]]
- Name:
- Note you can also add a path, so in one instance I wanted files named with the date, to go into a folder named with a year.
Notes
There is an existing move to obsidian action which I have installed and used, but this one opens the save dialog. I am using this to append to my daily notes, or create a new file in an Obsidian folder I have titled “inbox”. The file is created and saved automatically using the steps above.
References
- Dates and Locations Syntax can be found on Templates - Drafts User Guide
- Quick Capture to iCloud (& Obsidian) Using Drafts – The Sweet Setup