Skip to content

Instantly share code, notes, and snippets.

@ackman678
Last active December 18, 2015 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ackman678/5817239 to your computer and use it in GitHub Desktop.
Save ackman678/5817239 to your computer and use it in GitHub Desktop.
A simple applescript to fetch a bibliographic citation (using author, journal title, year) from pubmed.
display dialog "PubMed single citation matcher" & return & return & ¬
"Authors last name:" default answer "Kaas"
set author to the text returned of the result
display dialog "Journal Title: (Type a \" + \" in place of any spaces)" default answer "trends+neurosci"
set journal to the text returned of the result
display dialog "Publication date:" default answer "1995"
set yeartext to the text returned of the result
set target_URL to "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=pubmed&term=" & author & "[AU]+AND+" & journal & "[TA]+AND+" & yeartext & "[DP]"
open location target_URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment