maxio
maxio copied to clipboard
exportNotebook does not work with notebooks inside a folder
I have most of my notebooks inside folders on the remarkable. The tool does not find a notebook, if it is inside a folder. If not inside a folder the tools works fine. Still hope remarkable makes the built-in export work with custom layouts
I was running into the same problem since I was using a portion of exportNotebook for another script I'm making. If you want to disable checking for a folder, comment out the following code
# This checks if there is a parent to the document and skips over it if it does
if ! echo "$metadata" | grep -qF "\"parent\": \"$1\""; then
continue
fi