Go to DOI URL Applescript

Here’s a script that COULD be useful to access an alternate URL for a particular record:

tell application “EndNote”
    set res to find “dinosaur”
    set theDOI to read field “DOI” of record first item of res
    set theURL to “http://dx.doi.org/” & theDOI
end tell
open location theURL 

This way, the “URL” field can contain the “Go to ISI” code, and the DOI can be used to access the journal web site directly. 

It would be more useful if the “find” command were not required to identify the record of interest.  Does anyone know a way to choose records based on whether they are highlighted or selected?

Message Edited by scb on 06-16-2008 09:50 AM