One of the annoying features of google scholar is that it doesn't
include address information for publishers in the BibTex. Following
is an Applescript which will add addresses to publications based on
the publisher field. At this point it just includes a handful that
were in a batch of records that I just added, but it should be self-
evident how to modify it for your needs / add additional publishers.
tell application "BibDesk"
activate
-- without document, there is no selection, so nothing to do
if (count of documents) = 0 then
beep
display dialog "No documents found." buttons {"•"} default button 1
giving up after 3
end if
set thePublications to the selection of document 1
repeat with thePub in thePublications
set thePublisher to the value of field "publisher" of thePub
if thePublisher contains "Harvard" then
set the value of field "address" of thePub to "Cambridge,
MA"
else if thePublisher contains "Duke" then
set the value of field "address" of thePub to "Durham,
NC"
else if thePublisher contains "Chicago" then
set the value of field "address" of thePub to "Chicago"
else if thePublisher contains "Oxford" then
set the value of field "address" of thePub to "Oxford"
else if thePublisher contains "Indiana" then
set the value of field "address" of thePub to
"Bloomington"
else if thePublisher contains "of California" then
set the value of field "address" of thePub to "Berkeley"
else if thePublisher contains "Human Sciences Research Council" or
"HSRC" then
set the value of field "address" of thePub to "Pretoria"
else if thePublisher contains "Guilford" then
set the value of field "address" of thePub to "New York,
NY"
end if
end repeat
set selection of document 1 to thePublications
end tell -- Bibdesk-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users