On 16 May 2008, at 2:03 PM, Mukund Rangamani wrote:
Hello,
I have been using Christiaan Hoffman's script to download bibtex data
for arxiv eprints. Since v1.3.15 (I think) the script Download Bibtex
returns the following error.
Error: 712. Failed to change BibTeX info for 0805.2261. Cannot set
property of external publication.
That should be fixed with the next nightly.
Or in the BibDesk Download script in the function downloadBibTeX change:
set newPub to make new publication with properties {BibTeX
string:theBibTeXString} at end of publications
to:
set newPub to make new publication at end of publication
set BibTeX string of newPub to theBibTeXString
Can someone please suggest a fix for this as I find the scripts very
convenient? Also, while I am at it, would it be possible for the
script to fill in the Bibtex data from Spires in the Eprint field --
my current strategy is to populate the Eprint field by hand and ask
the script to get the rest of the data; it would be nice if the script
would override my Eprint number with the full Eprint information, say
replace
0805.2261 with arXiv: 0805.2261 [hep-th] in the above example as that
would make things simpler while referencing.
Best wishes,
Mukund
It's possible, but I don't want to add this to the script. It adds
some dependencies, and not everyone would want to do it. You can
easily change the BibDesk Download script yourself to do it. In the
function downloadBibTeX, just change:
repeat with fieldName in {"Author", "Title", "Journal", "Volume",
"Pages", "Year"}
set fieldName to contents of fieldName
try
set value of field fieldName to ¬
(get value of field fieldName of newPub)
end try
end repeat
set value of field "Eprint" to theEprint
to:
set value of field "Eprint" to theEprint
repeat with fieldName in {"Author", "Title", "Journal", "Volume",
"Pages", "Year", "Eprint"}
set fieldName to contents of fieldName
try
set theValue to get value of field fieldName of newPub
if theValue ≠ "" then ¬
set value of field fieldName to theValue
end try
end repeat
Christiaan
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users