Smart Screenshots
Renames screenshots based on OCR text from a watched folder.
What it does
- Watches
/Users/__/Desktop/screenshotsfor new images. - Runs OCR and builds a short, meaningful title.
- Renames the file in place.
- Logs to
~/.smart_screenshots.logand stops when~/.stop_smart_screenshotsexists.
Requirements
- Tesseract OCR installed and available on PATH (or set
TESSERACT_CMD) - Python packages in
requirements.txt
Install
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txtRun manually
python main.pyStop and restart
touch ~/.stop_smart_screenshots
rm ~/.stop_smart_screenshotsBackground services
- macOS: copy
launchd/com.smart.screenshots.plistto~/Library/LaunchAgents/, then load it withlaunchctl load ~/Library/LaunchAgents/com.smart.screenshots.plist. - Linux: copy
systemd/smart-screenshots.serviceto~/.config/systemd/user/, then runsystemctl --user daemon-reload,systemctl --user enable smart-screenshots, andsystemctl --user start smart-screenshots. - Windows: run
windows/run_smart_screenshots.bator create a Task Scheduler entry pointing at it.
Notes
- Tesseract is auto-detected at
/opt/homebrew/bin/tesseracton macOS; override withTESSERACT_CMDif needed.
