Page 1 of 1

Link to DevonThink2 Library

Posted: Tue Feb 16, 2010 1:20 pm
by laup
I keep documents in a DevonThink library, including downloaded attachments. It "should" be possible to have a Bookends 11 reference link to a document in that library, but it's not clear to me how to make that happen easily. DevonThink has a complex filing structure. In Finder, you see the DT icon for the library, but to see the raw contents you have to use CTRL and then pick Show Package Contents. A given pdf file might then be at


Ordinarily, one never bothers with this stuff, instead viewing the files inside the DevonThink browser in what seems visibly to be an ordinary folder structure but is actually an internal-to-DevonThink structure of "groups" linked to files such as the above deep in the package structure.

It does not seem possible to navigate to file with the Select attachment in BookEnds because of the package structure. One could select the entire data base, but not get inside--unless there is a magic incantation I don't know. Even if there is, that would be very tedious. Going the opposite direction, you can drag the file above onto the BE attachment pane, but that would be to copy the document rather than just link. I tried creating an alias and dragging that onto the pane, but Bookends said it couldn't find the file.


This seems important because it makes more sense to me at least to store items in DevonThink, which is built for that, rather than in ~/Documents/Bookends/Attachments (path approximate).

Re: Link to DevonThink2 Library

Posted: Tue Feb 16, 2010 2:18 pm
by Jon
If you drag the pdf to and attach it, Bookends, it does *not* have to move the pdf anywhere. Uncheck the Move/Copy box. Then Bookends will just remember where the attachment is (in the DT "library").

Sonny Software

Re: Link to DevonThink2 Library

Posted: Tue Feb 16, 2010 3:32 pm
by laup
What could be easier? Thanks.

Re: Link to DevonThink2 Library

Posted: Tue Feb 16, 2010 7:54 pm
by jebni
DEVONthink doesn't need to physically add a file to its database(s) in order to use it, so an alternative would be to have DEVONthink simply index Bookends' Attachments folder. Seems to work just as well as storing the PDFs in a DEVONthink database -- you just have to attach a script to the resultant folder in DEVONthink to reindex it. Or you could set a folder action to the Attachments folder that auto-indexes any new files added to this folder, which is what I do.

This is the Folder Actions script I attach to the Attachments folder:

Code: Select all

on adding folder items to this_folder after receiving added_items
		tell application id "com.devon-technologies.thinkpro2" to launch
		repeat with theItem in every item of added_items
				set thePath to theItem as text
				if thePath does not end with ".download:" then
					tell application id "com.devon-technologies.thinkpro2" to indicate thePath
				end if
			end try
		end repeat
	end try
end adding folder items to

Re: Link to DevonThink2 Library

Posted: Fri Feb 26, 2010 11:40 pm
by rickl
My (uninformed) first thought is that jebni's solution is preferable: I have a sneaking worry that DT might move things around in such a way that Bookends loses track of them, and in any case I wouldn't want to have to uncover all my PDFs in the Finder in order to drag them from DT to Bookends. Are there any reasons I haven't thought of for using laup's approach?