Two things DT could add, and I'd never need a browser

  1. Bookmarklets – not the ones DT provides to use with other browsers, but internal to DT itself, allowing you to perform operations on the page you’re viewing.

  2. Save all tabs. Or is it scriptable, at least?

Thank you for the suggestions! Scriptable tabs & workspaces are scheduled for a 2.x release but the first suggestion is not that likely right now. Although it should be possible to execute the code of bookmarklets via AppleScript and therefore to perform the same action.

Yes, if you know your way around AppleScript, which I do not. For example, how would I convert this incredibly nifty bookmarklet (from Arc90.com’s Readability experiment) into an executable script?


javascript:(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-wide';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability-0.1.js';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);})();

Something like…


tell application "DEVONthink Pro"
	tell think window 1 to do JavaScript "<insert JavaScript code here>"
end tell

…should work but doesn’t. I’ll have to check this,.