Hi just upgrade my DT to Pro, and I really am very happy with the improvements made. I used DT extensively for some time, but its use had dimished quite a bit. Especially the possibility to have such AppleScript integration is great.
Right now I switch to Safari for surfingexpeditions where I want to collect the data in DT, but I much prefer OmniWeb.
As a true AppleScript nitwit, I tried and replace the term Safari by Omniwen in the supplied scripts, but unfortunately that does not work.
Could you please tell me how to make it work for OmniWeb?
I’ve just downloaded the latest OmniWeb 5.1.x beta but it’s still impossible to access the HTML source of an OmniWeb browser window. Therefore it’s not possible at the moment to modify the scripts for OmniWeb.
The last time I’ve checked this it was impossible due to limitations of OmniWeb.
Some minor modifications of Krioni’s code:
tell application "OmniWeb" to set theURL to address of browser 1
-- Tries to handle the referrer problem and handles the text encoding
tell application "DEVONthink Pro" to set theHTML to download markup from theURL
tell application "OmniWeb"
set theHTML to do script "document.body.innerHTML;" window browser 1
-- All header information, e.g. styles, scripts, keywords etc., isn't stored
set theHTML to "<html>" & return & theHTML & return "</html>"