Publish from Tinderbox to DEVONthink

Hi @pat, I’m hoping you’d be willing to explain a bit more about how your file builds the x-devonthink links between notes. I’m trying to combine the functionality of your file with my own Zettelkasten file, which exports markdown files in a particular format. Basically, I’m hoping for one TBX file that can export HTML files to DevonThink AND Markdown files to the file system.

I’ve got your Tinderbox file working great. I was even able to add in my own markdown templates and functionality and things were working fine. However, when I export to DevonThink, the link hrefs now point to TBX outline paths instead of x-devonthink links. Can you say more about what parts of the code in the file are creating the x-devonthink links so I can see if I’ve inadvertently changed those? Is $HTMLExportFileName involved?

In case you’re curious to look, I’ve included my file here as well. It looks to me like the $SourceURL is getting set properly (I can click the x-devonthink link in Tinderbox and be taken to the note in DT). It’s just not getting used as the link in the HTML export.

ZKN DevonThink.tbx (162.8 KB)

Thanks much! Your DevonThink export code really is amazing and useful.

1 Like