About apple-photos
apple-photos is a collection of scripts for querying the Apple Photos library through SQLite. It is intended for people who want to inspect albums, people, and photos, search library content, and export images.
Key features
- 01View library statistics and albums
- 02List recent photos and people
- 03Search by person, content, or date
- 04Retrieve photo information
- 05Export photos with HEIC conversion
Use cases
- 01Checking the number of library photos
- 02Finding photos by person or date
- 03Searching photos by their content
- 04Exporting a photo for viewing
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ sundial-org/ awesome-openclaw-skills --skill apple-photosAfter installing, type/apple-photosin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
scripts/photos-count.shphotos-export.shphotos-info.shphotos-list-albums.shphotos-list-people.shphotos-recent.shphotos-search-content.shphotos-search-date.shphotos-search-person.shDetails
From the project READMEApple Photos
Access Photos.app via SQLite queries. Run scripts from: cd {baseDir}
Requirements
- Full Disk Access for terminal (System Settings → Privacy → Full Disk Access)
Commands
| Command | Usage |
|---|---|
| Library stats | scripts/photos-count.sh |
| List albums | scripts/photos-list-albums.sh |
| Recent photos | scripts/photos-recent.sh [count] |
| List people | scripts/photos-list-people.sh |
| Search by person | scripts/photos-search-person.sh <name> [limit] |
| Search by content | scripts/photos-search-content.sh <query> [limit] |
| Search by date | scripts/photos-search-date.sh <start> [end] [limit] |
| Photo info | scripts/photos-info.sh <uuid> |
| Export photo | scripts/photos-export.sh <uuid> [output_path] |
Output
- Recent/search:
Filename | Date | Type | UUID - People:
ID | Name | Photo Count - Default export:
/tmp/photo_export.jpg
Workflow: View a Photo
- Get UUID:
scripts/photos-recent.sh 1 - Export:
scripts/photos-export.sh "UUID" - View at
/tmp/photo_export.jpg
Notes
- Date format:
YYYY-MM-DDorYYYY-MM-DD HH:MM - Content search uses ML, slower (~5-10s) than date/person (~100ms)
- HEIC auto-converts to JPEG on export
- Name search is case-insensitive, partial match
Comments
Markdown supported