I've already posted this in the general forum, but here's probably the more relevant place.
For those who would like to use NodeJS to script Bookends, here's an NPM package that lets you do just that:
https://github.com/cboulanger/bookends-api
https://www.npmjs.com/package/bookends-api
The mocha test suite shows how it is used: https://github.com/cboulanger/bookends- ... pi.test.js
I am definitely happy to accept pull requests if you want to contribute fixes/improvements.
I have asked Jon if he can add AppleScript support for the following actions (updated):
- Rename/delete groups
- Delete references
- Remove references from groups
- Create/rename/delete folders
- Add/Remove groups to/from folder
Bookends NodeJS API client released (experimental)
-
- Posts: 59
- Joined: Mon Jan 28, 2008 6:18 pm
-
- Posts: 59
- Joined: Mon Jan 28, 2008 6:18 pm
Re: Bookends NodeJS API client released (experimental)
Here are two scripts based on the Bookends NodeJS client:
- Find missing attachments and put them into the attachment folder (downloading them from iCloud drive locations if necessary):
https://github.com/cboulanger/bookends- ... ttachments
- Set the BibTeX key of all references using your own computed key:
https://github.com/cboulanger/bookends- ... bibtex-key