I am looking at starting to log data into a
data journal in Day One. This data would be stored as a json string that I could then parse later. I’m starting off with logging daily ratings (general mood, how well I worked at specific goals, etc.). Then, I can compile statistic later on. I will probably use either Shortcuts or Drafts on iOS or the Day One CLI on macOS to actually log the data.
The problem comes with getting the data out of Day One. So far, the best option I can find is to:
- export the
datajournal as JSON
- extract/unzip the generated zip file
- parse the JSON file from Day One
- parse each entry’s JSON payload
I have a script that can do steps 2-4, but I can not figure out how to automate step 1.
Any idea of how to automate exporting a single journal in Day One? I know I can right click on a journal in the sidebar and select Export, but I can’t find a way to do the export programmatically. If you use the File > Export option, it exports all Journals, and there appears to be no AppleScript action for Day One.
This would also be moot if there was a way to query the Day One database directly. ಠ_ಠ
Any suggestions would be awesome! Thank you