Automation script for summarizing papers in BibDesk.
- 📎Just attach the PDFs to the BibDesk entry and ensure the "annote" field to be empty.
- ⚙️The script will automatically summarize the paper and write to the "annote" field, once the editor window is closed.
- 📄Click on "TeX Preview" to checkout the summary.
- 📖Full LaTeX functionality support for the summary.
Assume all the commands are executed in the root directory of the repository.
- Ensure you have Python 3.8+ installed.
- Edit the
BASE_URL,API_KEYandMODEL_NAMEline in theai_summarize.pyfile to set up your access to LLM services. - Execute
cp src/ai_summarize.* ~/Library/Application\ Support/BibDesk/Scripts/to install the script files. - Add the
ai_summarize.applescriptto the "Close Editor Window" hook inBibDesk > Preferences > Script Hooks.
- Execute
mkdir -p $(kpsewhich --var-value TEXMFHOME)/bibtex/bstto create the necessary directory. - Execute
cp src/acm-annote.bst $(kpsewhich --var-value TEXMFHOME)/bibtex/bst/to install the bibtex style file. - Execute
cp src/previewtemplate.tex ~/Library/Application\ Support/BibDesk/to override the default preview template. - In BibDesk, go to
Preferences > Preview, first enable "Generate previews using TeX", and then change the "Full path to pdflatex" to/Library/TeX/texbin/xelatex.
Once you have set up the script, you can use it by:
- Open an entry in BibDesk and attach the PDF file to it.
- Ensure the "annote" field is empty.
- Close the editor window.
- Wait until the gear icon ⚙️ in the menu bar disappears.
- Click on the "TeX Preview" button in the BibDesk entry to view the summary.
The first launch may take a while as it sets up the environment and downloads necessary packages. Subsequent launches will be faster.

