Suppose that I have an item selected in my Zotero application running on macOS. From outside of the Zotero application, can I attach a file to the item using an API endpoint of some kind? If so, what is the API (or the API options) and where can I find out more?
Here's an example for more context. Better BibTeX listens on a port and allows some operations over a network API, and I've been using this to get data about Zotero entries. The API is convenient because I can write a small script (e.g., in AppleScript or shell) that uses HTTPS calls to perform operations. However, BBT doesn't seem to offer a way to attach something (unless I've missed it?). So, I'm looking for something that might work roughly like using the BBT API, except that I want to send files.
The closest I've been able to find is that it could be done using PyZotero. That would work (and I use PyZotero for other things), but here I'm looking for a more direct approach, if there is one.
My apologies if I've missed something obvious or past discussions. I did search first, but failed to find an answer.
Best regards,
MH
--
Mike Hucka, Ph.D. (he/him/his)
mhu...@caltech.edu --
http://www.cds.caltech.edu/~mhucka
California Institute of Technology