[Feature Request] Applescript to Export Groups as Formatted References
Posted: Sun Dec 13, 2020 8:46 pm
Currently we can format individual references using Applescript:
The problem is when you want to export many references this becomes really really slow, requiring special tricks of batching up references into smaller groups to not cause Applescript to freeze which still is really slow:
https://github.com/iandol/bookends-tool ... pplescript
For example, exporting my main reference set of ~7100 references takes >31 minutes using Applescript and ~1.5 minutes when using Bookends export. There is also a leak of memory when using Applescript (Jon has said it is Apple's code that leaks) that causes VM memory of WindowManger to shoot up (it drops back down when Bookends is closed), and more CPU use for the whole period it runs.
It would be nice therefore if we could automate the Export References feature of the File menu to export whole groups rather than individual references. This would trigger the same fast and efficient mechanism that Bookends runs already:
Currently Bookends only allows Hits to selected be exported in the GUI, but I assume it is fairly easy to allow the Applescript selection to treat named groups in the same way, as Bookend's Applescript dictionary already has the concept of "group items". This would make it much easier for those of us who use Bookends as part of a bigger workflow that depends on an accessible reference library to operate (LaTeX, Pandoc or many other tools).
Code: Select all
set bibtexRefs to format myPubs using "BibTeX.fmt" as BibTeX
https://github.com/iandol/bookends-tool ... pplescript
For example, exporting my main reference set of ~7100 references takes >31 minutes using Applescript and ~1.5 minutes when using Bookends export. There is also a leak of memory when using Applescript (Jon has said it is Apple's code that leaks) that causes VM memory of WindowManger to shoot up (it drops back down when Bookends is closed), and more CPU use for the whole period it runs.
It would be nice therefore if we could automate the Export References feature of the File menu to export whole groups rather than individual references. This would trigger the same fast and efficient mechanism that Bookends runs already:
Code: Select all
export myGroup to myFile using "BibTeX.fmt" as utf8