Automating Remarkable 2 daily pages with iOS Shortcuts

From the archive — written 4 years ago. About old posts.

I have a Remarkable 2 and part of my morning routine involves answering a few prompts in a written note and jotting down the most important thing I want to accomplish in each meeting. I used to have a generic template for that, but every time you update the firmware on a Remarkable it wipes out custom templates. You can also write on PDFs on a Remarkable so I just made an iOS shortcut to make dynamically generated daily pages as a PDF:

  • Dated cover page with large text so it’s easy to see which one is which.
  • Dynamically generated list of calendar events for the day.
  • You can’t add a PDF to a notebook, which is a small drawback. I intend to just move my daily pages into a folder for them so they don’t clutter things up.

The workflow asks a few onboarding questions, including where you want to store a note that keeps the text for the calendar events and which calendar in Apple Calendar you want to use to pull events.

I initially started this process by stitching together PDF copies of my original Remarkable templates and adding a little bit of HTML/JS to the cover page to dynamically generate the date. I also moved the final PDF into a Dropbox folder I had to manually download the PDF from. That required creating a staging directory and having a Dropbox account, which is one of two cloud storage services Remarkable will work with (the other being Google Drive).

I ended up just writing the HTML for the templates so I wouldn’t have to do the compositing step – everything the workflow needs now lives in the workflow or in your calendar. There are two big text blocks that have the necessary HTML, which is then turned into a PDF and appended to an array of PDFs the workflow generates.

The daily events list is a little wonky: After struggling to add events to a variable then finding out that Shortcuts variables don’t seem to have a “flatten” function to turn them into a single string instead of an array of strings, I just punted: The workflow makes a note named after today’s date and appends each event to that note, then renders the note as a PDF and appends it to the PDF list variable.

The last step of the script requires the Remarkable app, and it’s probably my favorite part: You just tell the Remarkable app to open the composited PDF, and that’s enough to trigger a sync. By the time I put down my phone from running the workflow and turn on the Remarkable, it’s downloading the pages for the day. That’s a nice improvement over the first iteration, where I was manually downloading the PDF from Dropbox. Now all I have to do is swipe right from my phone’s homescreen, run the workflow from my Favorite Workflows widget with a tap, and about five seconds later I’m all set. It allows the whole thing to have just one real external dependency outside the things that just come on an iPhone or iPad, which is the Remarkable app.

Anyhow, caveat emptor: There is no error checking, it saves a copy of the PDF to a hardcoded iCloud directory, and it has to save those notes it makes to do the event list creating some clutter, which is all to say it could be annoying, destructive, or both, so review it before running it.

I hope Apple keeps working on Shortcuts. There are some very nice features there that blow Automator out of the water. There are also some frustrating pieces (e.g. variables that might be strings, might be arrays, but you can’t really tell by looking at them, and there’s no way to flatten arrays). The drag-and-drop interface is clumsy, too. But it’s also able to do a lot. It reminds me of AppleScript, to the extent it’s pretty cool that you can do this sort of automation with desktop apps, but just have to endure some stilted ways of expressing what you’re trying to do. One thing I liked about Automator was that I could write little pods of more sophisticated logic with Ruby – same with AppleScript with the do shell script stuff, which made it possible to call out and get something back when AppleScript didn’t have the brains (e.g. processing an RSS feed).

A few things this makes me wish for in the Remarkable:

  • A native calendar integration. Maybe I’m the only one who likes doing this, but I really do enjoy writing a few notes down about each meeting at the beginning of the day. It helps keep me on track. Sometimes I jot down the key thing I want to accomplish, other times I write a reminder to myself to remember how I want to behave in the meeting.
  • Better custom template handling. You should just be able to drag a PDF of the right dimensions into a folder in the app. People have made apps to ease the process of getting a template into the device, but it requires a cable and you have to do it with each software update.
  • In-notebook page management in the Remarkable app. The device itself is a little slow and clumsy when it comes to taking a page from one notebook and moving it into another. Lots of tapping, and it can get confusing. It’d be nice to be able to move pages around between notebooks in the app, where it’d be faster.

Drop a line about this.