A quick and dirty Python script to export the MacOS Bear App note files to an output folder (in my case One Drive, so it can sync).
This is a workaround the fact that Bear App is not available outside the Apple ecosystem. When and if the Bear App web client arrives, this will become unnecessary.
There is a very simple config.json
file with the following options:
- cleanOutputDir: Cleans any files in the output (target) directory before exporting the files. Defaults to
true
. - exportTrash: Exports the notes in the trash. Defaults to
false
. - outputDir: The default output folder. Defaults to
~/OneDrive/Bear Notes
.
In the directory, just execute the export.py
Python file:
$ python export.py
This is uni directional Bear App
-> Exported Markdown Files
. I want to keep this as simple as possible and read-only to avoid messing any metadata in the Bear App SQLite database.
The images and files folders are also exported (can be changed in the config.json
file).
The format that Bear App currently uses for the images is not standard markdown and therefore the images won't render in the markdown files outside of Bear App.