Tinderbox Forum

Publish from Tinderbox to DEVONthink


(Desalegn) #41

Oh, my bad. I have misread your comments. Glad to know that you still use it, and support it. It has been very useful to me.


(Enrico Scarpella) #42

Dear @pat,

First of all: thank you so very much for your Publish to DEVONthink workflow! I find it very useful and use it all the time.

I do have a question about it, though. In some of my TB notes, I have links to Bookends references. Those are turned into regular text into DTPO; is that the desired behavior or have I done something wrong? If the former, would you suggest that I “re-link” those references to BE in DTPO? If the latter, could you please point me in the right direction to correct my mistake? Thank you for your consideration.

Best regards,
Enrico


(Pat Maddox) #43

It’s not desired behavior, but you probably haven’t done something wrong :slight_smile:

Would you be willing to send me a stripped-down version of your TBX? Just leave the one note in that has the bookends link that isn’t working (along with basic infrastructure – e.g. stamps, templates, applescripts). Then I can take a look and see what’s going on.

You can, just be aware that the next time you “publish to DEVONthink” the content will be overwritten. So, you could lock the record in DEVONthink, or duplicate it and make your edits in the duplicated version. At least that way you have something working until we get to the bottom of what’s going on here.


(Enrico Scarpella) #44

Dear @pat,

Thank you for your kind reply, the helpful clarifications, and the generous offer to look into that.

I have attached here a simplified file with all the infrastructure but only four notes that are linked to one another, and three of which contain links to Bookends references (in blue); hope that is helpful. In any case, please feel free to let me know if there is anything else you need.

Thank you for your consideration.

Best regards,
Enrico

Work - Content - Simplified.tbx (114.3 KB)


(Pat Maddox) #45

Possible fix: instead of copying a bookends link and pasting it directly into Tinderbox note text, you should:

  1. Select the Tinderbox text you want to link
  2. Run Note -> Make Web Link...
  3. Paste the bookends URL into the URL field and press Create Link

I suspect that will do the trick for you.

What follows is my stream-of-consciousness exploration of why your existing links don’t work.


Okay so I took a look at the document you sent (thanks!) and there’s something interesting about it. On my machine, at least, the links don’t render as part of the HTML. If you view the text preview or HTML, you’ll see that the linked text gets converted to plain text.

Another hint is that if you right-click the note and “browse links,” the linked text doesn’t show up in the browse links pane. Typically external links like that will show up as a (web link):

BUT

I do have a hypothesis: maybe Tinderbox doesn’t treat pasted rich text links the same as text links created in Tinderbox. To test this, I selected a DT record and ran “copy item link” to get a rich text link, which I pasted into my Tinderbox note. I got the same result as your doc – it appeared to be a link in the text (and it worked when I clicked on it!) but Tinderbox rendered the link as plain text in its HTML export.


(Enrico Scarpella) #46

Dear @pat,

Thank you very much for your prompt and helpful reply.

You are right: in Tinderbox, the Bookends links in my notes are converted to plain text when viewed in Preview or HTML.

And indeed the procedure you described to create a rich-text link from a DEVONthink record (i.e. “copy item link” and paste it in a Tinderbox note) is exactly what I did to create my links to Bookends references in Tinderbox.

I have tried what you suggested:

And it works: the link appears as link in Preview and HTML, and when “Published to DEVONthink”, it remains a link; however, in both Tinderbox and DEVONthink, the link takes me to the PubMed record in Safari and not to the reference in Bookends. But perhaps I misunderstood what you suggested I do?

Again, thank you very much for your help.

Best regards,
Enrico


(Pat Maddox) #47

hrm I don’t know… when you look in HTML preview, what is the link? Assuming it’s something like bookends://sonnysoftware.com/19087 I would expect it to open in Bookends.


(Desalegn) #48

If you want to link your Devonthink files with their Bookends entries: now, we have a great user script by Zach: https://www.sonnysoftware.com/phpBB3/viewtopic.php?p=22041#p22041

Pat linked Tinderbox (=notes in html format) with Devonthink
Zach linked Bookends (pdf, epub files) with Devonthink

Devonthink is our hub (center)—works great on the mac as well as the ipad. This is looking great.


(Enrico Scarpella) #49

Thank you, @pat, for getting back to me on that. Yes, in the HTML pane the link looks something like:

<p><a href=“bookends://sonnysoftware.com/982”>The dynamics of plant plasma membrane proteins: PINs and beyond</a></p>

And now the link appears as such in the Preview pane too and is preserved in DTPO. But unfortunately, I am now experiencing a different problem: every time I click on the link in the Tinderbox note, I get a message such as:

“There is no application set to open the URL bookends://sonnysoftware.com/982.”

The window in which the message appears allows me to choose an application to open the link, but Bookends is not among the recommended applications to do so; however, if I go through a few steps, I am able to enable Bookends to open the link. Unfortunately, the procedure needs to be repeated every time I click on a link: the system never seems to remember that it should open it with Bookends, even if I had given full access to Bookends in System Preferences > Security & Privacy when I had installed it.

Anyway, I suspect the problem is Bookends, so I requested help through their forum and technical support; I’ll keep you posted.

And thank you, @Desalegn, for reminding me of that great resource: I had come across that post as I was exploring the Bookends forum, but I had completely forgotten about it, so thank you for bringing it back to my attention. I hope to resolve my problem with hypertext links in Bookends soon, so that I can test that script too!

Best regards,
Enrico


(Enrico Scarpella) #50

Dear all,

I confirm that the problem was Bookends: literally 15 seconds after I had written to Sonny Software’s technical support, they replied that the issue was resolved in a silent update to v13.2. I downloaded v13.2 again and now everything works as expected: I can see the links in the Tex and Preview panes; they are preserved as links after the notes are “Published to DEVONthink”; and if I click on them in either Tinderbox or DTPO, I am taken to the reference in Bookends.

On a related note, it is such a treat to work with software like Tinderbox and Bookends, which comes with such an extraordinary support from the developers: thank you so very much!

Best regards,
Enrico