Skip to content

Add Photos module with screenshot search functionality #38

@Rish-it

Description

@Rish-it

Description & Checkpoints

I've implemented a comprehensive Photos module that enables users to access and search their Apple Photos library, with special focus on finding screenshots.

  1. New Photos Module:

    • Created a new utils/photos.ts module that interfaces with Apple Photos via JXA
    • Added type definitions, error handling, and comprehensive methods for working with photos
  2. Core Photo Search Functionality:

    • getAllAlbums: Lists all photo albums in the library
    • getPhotosFromAlbum: Retrieves photos from a specific album
    • searchPhotosByText: Searches photos by text across filenames, descriptions, and keywords
    • searchPhotosByDateRange: Finds photos within a date range
    • getFavoritePhotos: Returns favorite/starred photos
    • getMemories: Accesses memory collections (trips, events, etc.)
    • getRecentPhotos: Gets most recent photos
    • getPeople: Lists recognized people in Photos
    • getPhotosByPerson: Finds photos of specific people
  3. Screenshot-Specific Features:

    • Added a dedicated findScreenshots function that uses multiple methods to identify screenshots:
      • Filename patterns (Screenshot, Screen Shot)
      • Album membership (Screenshots albums)
      • Keywords
      • File types (PNG) with screenshot metadata
    • Created a specialized screenshots operation that offers a more seamless user experience
  4. Photo Management:

    • exportPhoto: Export photos to a specific location
    • openPhoto: Open a photo in the Photos app

This implementation enables Claude users to easily work with their Photos library, with particular emphasis on finding screenshots across their devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions