So here’s the script:
The script (blindly) assumes that you have selected a bookmark link or a webarchive link and that the HTML in question points to the New York Times. Those are some big assumptions, but obviously the real utility of a script like this is if it could work against a whole library of meta-tags that various big websites use to meta-tag their data. Having Devonthink do it automatically and handle all the parsing tricks I think is a big idea, and I might take it on, but since I don’t think many are even aware that this possible, I wanted to share this right now. It’s pretty cool.
defaults write ~/Library/Preferences/com.devon-technologies.agent WebKitDeveloperExtras -bool TRUE
A control-click on the webpage in devonagent will then pull up the webinspector, just like safari—but with all of DevonAgent’s applescript power! Here http://developer.apple.com/library/safari/#documentation/AppleApplications/Conceptual/Safari_Developer_Guide/1Introduction/Introduction.htmlis more on the Webinspector
More posts to come, but I think this is a BIG DEAL and it’s inspired me to do scripting again…
I have to say, this makes me really want to see Devonthink support custom metadata, such as say, the ability to embed the AUTHOR and TITLE and DATE in some sort of standard metadata format that would display in the columns of three-pane view…but that’s another post!