Creates Markdown-formatted citations from DEVONthink documents, with deeplinks and Bates number support. Perfect for reviewing administrative records in DEVONthink.
4. Paste formatted citation into a Markdown editor
## Features
- Copies selected text to clipboard
- Calculates and generates a Bates cite using if filename is compatible (see below), e.g., `FWS 134` (if the selected text is on page 3 of a file that is named, e.g., `FWS_000131.pdf`)
- For non-Bates numbered documents, it generates a standardized cite, e.g., `IPCC Report at 5` (if the selected text is on page 5 of a file that is named `IPCC Report.pdf`)
- Appends Markdown-formatted deeplink to selected text in document to clipboard, using the generated page number (Bates or non-Bates) (see Output Examples below)
## Bates-compatible Filenames
The script will parse several different Bates-numbered filenaming conventions, including, for example:
-`FWS 000533.pdf`
-`FWS-000533.pdf`
-`FWS_000533.pdf`
-`NMFS 002561-002985.pdf`
-`BLM 45.pdf`
-`BLM_45-62.pdf`
Use my `bates` script to quickly rename a batch of PDFs (e.g. a complete administrative record) to be compatible with this script while preserving original names in metadata. [Find it here →](https://sij.ai/sij/pathScripts)