Hello,
I have, painstakingly, set up an AppleScript that reads my selected Evernote
notes (for what it's worth, I have to maintain the Evernote project because
Evernote allows a tag hierarchy), and based on certain criteria, will write the
content of the note into a bib file. The relevant part looks like that:
set theNewEntry to ¬
"@case{" & theNoteDecisionID & "," & return & ¬
" Court = {{" & theNoteDecisionCourtFull & "}},"
& return & ¬
" Author = {{" & theNoteDecisionCourtFull & "}},"
& return & ¬
" Crossref = {" & theNoteDecisionCourt & "}," &
return & ¬
" Note = {" & theNoteDecisionType & "}," & return
& ¬
" Date = {" & theNoteDecisionDate & "}," & return
& ¬
" Year = {" & theNoteYear & "}," & return & ¬
" Date-Added = {" & theCurrentDate & "}," &
return & ¬
" Date-Modified = {" & theCurrentDate & "}," &
return & ¬
" Eventdate = {" & theNoteDecisionDate & "}," &
return & ¬
" Title = {" & theNoteDecisionType & " v. " &
theNoteDay & "." & theNoteMonth & "." & theNoteYear & " - " &
theNoteDecisionNumberFull & "}," & return & ¬
" Number = {" & theNoteDecisionNumberFull & "},"
& return & ¬
" Rating = {" & theDecisionRating & "}," & return
& ¬
" Abstract = {" & theNoteText & theTagListAsText
& "}," & return & ¬
" Keywords = {" & theTagListAsText & "}," &
return & ¬
" Options = {germany=true}," & return & ¬
" File = {./" & theSourcesFolder &
theSourceFileName & "}," & return & ¬
" Local-Url = {file://localhost" & POSIX path of
theSourcesFolderFull & theSourceFileName & "}}" & ¬
return
Now this returns, for instance, entries like the following:
@case{BGH-2012-09-19-XII-ZR,
Author = {{BGH}},
Court = {{BGH}},
Crossref = {BGH},
Date = {2012-09-19},
Date-Added = {2012-10-12 17:49:58 +0200},
Date-Modified = {2012-10-12 17:49:58 +0200},
Eventdate = {2012-09-19},
File = {./Sources/BGH-2012-09-19-XII-ZR.pdf},
Keywords = {Zivilrecht, Familienrecht, Unbenannte Zuwendung},
Local-Url =
{file://localhost/Users/janjakobbornheim/Dropbox/Juranote/Sources/BGH-2012-09-19-XII-ZR.pdf},
Note = {Urt.},
Number = {XII ZR},
Options = {germany=true},
Title = {Urt. v. 19.9.2012 - XII ZR},
Year = {2012},
Abstract = {Zivilrecht, Familienrecht, Unbenannte Zuwendung}}
The script loops over all selected notes, and adds theNewEntry as an item to a
list. Finally, the list is written to a new bib file. It works flawlessly with
one exception:
It was my understanding that, upon opening, BibDesk would convert the Local-Url
to a Bdsk-File style format. Which is, what I assumed and what my research
through tells me is the expected behaviour of having "Automatically convert
File and URL fields" checked. However, it does not do that and the local file
count for each entry will be 0.
Furthermore, even selecting Convert File and URL fields from the Database menu
does nothing.
Is my understanding wrong or is there a bug?
Cheers,
JJ
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users