Code for various AppleScripts I've written or modified for DEVONthink Pro 3
Bates Source Link.scpt | ||
README.md |
DEVONthink
Code for various AppleScripts I've written or modified for DEVONthink Pro 3
🔗 Bates Source Link - Citation Generator
Creates formatted citations from DEVONthink documents, with smart Bates number support.
Usage
- Open document in DEVONthink
- Select text to quote
- Run script
- Paste formatted citation
Output Examples
Bates-numbered documents:
"The environmental impact study shows..." [FWS 123456](x-devonthink-item://...)
Regular documents:
"The data indicates..." [Report Title at 5](x-devonthink-item://...)
Features
- Smart Bates number detection and formatting
- Page number tracking
- URL-encoded quotes
- Markdown-compatible output
- Error handling
- Works with both Bates and regular documents
Installation
- Open DEVONthink
- Go to Scripts menu
- Select "Open Scripts Folder"
- Add script to folder
Keyboard Shortcut (Optional)
- System Settings → Keyboard → Keyboard Shortcuts
- Select "App Shortcuts" → "+"
- Choose DEVONthink
- Enter exact script name
- Assign desired shortcut
Requirements
- DEVONthink Pro
- macOS
- Perl (for URL encoding)
Notes
- Works best with consistent Bates number formatting
- Creates markdown-compatible citations
- Copies result to clipboard
- Perfect for legal research and document analysis