Is there any way how to get the ID of the space for the current day (and if it does not exist, to create it automatically)?
I am making a small program for Slapdash (
https://slapdash.com) that allows me to send text directly to favorite spaces from anywhere on my computer.
We discussed briefly in Discord, but just wanted to document the feature request.
Would like a way to fetch the space ID for today’s journal space.
This way I can use a quick Siri shortcut to add links and text and always have it flow to the current days space rather than having to do this to an Inbox and then move to the current space throughout the day.
GET ID -> POST [text] to ID
Does this help you accomplish what you need?
Almost, I guess?
I want a route to today’s journal and if it does not exist, create it.
You can add some logic so it pulls today, it won’t create though.
I use that route to send stuff to today’s journal with Siri Shortcuts all the time. And I use /new/tomorrow everyday so the next days space is always ready.
I guess I could create a script that would get all spaces and then filter them, and if the journal for the current day is not found, then create one. However, I am afraid that it would be rather complicated for me and relatively slow to proces.
If it helps here is the Shortcut I use. Works like a charm and super quick:
If you can, I would try automating the creation of tomorrows space separately with the url so you don’t have to worry about if the days space is created.
Just adding my support for this – would be a huge unlock for building tools on top of Kinopio.