Bookmarklets!

Just gonna put in another plea, post-b8, for bookmarklets capability. I use these a lot in Safari — but if DT had 'em, I’d have no remaining use for a stand-alone browser, and would just use DT all the time.

They could be dragged to the (largely unused) bar just below the toolbar. As could any link, come to think of it.

thanks for the suggestion, we’ll consider this for future releases but at least right now DEVONthink is not intended to be a browser (as that would provoke countless other requests :slight_smile:)

But it is a browser! I just wish other browsers had some of DT’s bookmark-management capability.

I’m on for the bookmarklet request. My life on DTP would be a happier one with Readability and Instapaper bookmarklets. :slight_smile:

It’s possible by using scripts, for example…


tell application id "com.devon-technologies.thinkpro2"
	do JavaScript "window.location='x-devonthink://createBookmark?title='+encodeURIComponent(document.title)+'&location='+encodeURIComponent(window.location);" in think window 1
end tell

Thank you Christian —

It worked quite well with the Readability bookmarklet…

Style “Novel” with sepia background:

tell application id "com.devon-technologies.thinkpro2"
	do JavaScript "(function(){readStyle='style-novel';readSize='size-medium';readMargin='margin-medium';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability-0.1.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';document.getElementsByTagName('head')[0].appendChild(_readability_css);_readability_print_css=document.createElement('LINK');_readability_print_css.rel='stylesheet';_readability_print_css.href='http://lab.arc90.com/experiments/readability/css/readability-print.css';_readability_print_css.media='print';_readability_print_css.type='text/css';document.getElementsByTagName('head')[0].appendChild(_readability_print_css);})();" in think window 1
end tell

Style “Newspaper” with white background:

tell application id "com.devon-technologies.thinkpro2"
	do JavaScript "(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-medium';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';_readability_css.media='screen';document.getElementsByTagName('head')[0].appendChild(_readability_css);_readability_print_css=document.createElement('LINK');_readability_print_css.rel='stylesheet';_readability_print_css.href='http://lab.arc90.com/experiments/readability/css/readability-print.css';_readability_print_css.media='print';_readability_print_css.type='text/css';document.getElementsByTagName('head')[0].appendChild(_readability_print_css);})();" in think window 1
end tell

Readability website: http://lab.arc90.com/experiments/readability/

Alas, no sucess with Instapaper.

Can I request that the DT crew include a Export script (or Send to…) for Instapaper in the future? Will this be possible? (For me, the biggest pain in DT is that its potential is so linked to scripts and, alas, I’m not an expert (at all) on those.)

DEVONthink Pro has probably one of the most powerful AppleScript suites and a lot of things can be accomplished that way. But only things of common interest (requested quite often) are of course added.

Thanks for doing the Readability script.