Skip to content

Add screenshot and beautify scripts for app window captures#71

Merged
alexkroman merged 1 commit into
mainfrom
claude/screenshot-beautify-script-4d1e4y
Jul 8, 2026
Merged

Add screenshot and beautify scripts for app window captures#71
alexkroman merged 1 commit into
mainfrom
claude/screenshot-beautify-script-4d1e4y

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

What & why

Adds two Swift utility scripts for capturing and beautifying app window screenshots:

  • scripts/screenshot.swift: Captures a single app window to PNG while preserving macOS corner radius and drop shadow in the alpha channel. Supports filtering by window title and requires Screen Recording permission. Provides helpful diagnostics when no matching window is found.

  • scripts/beautify.swift: Composites a window screenshot onto a gradient backdrop (matching the site's brand colors) with proportional padding. Designed to work with screenshots captured by screenshot.swift to produce polished "nice screenshot" images for site documentation.

These scripts enable automated generation of consistent, professional-looking app screenshots for marketing/documentation purposes.

How it was tested

  • scripts/check.sh passes (or CI will, if I'm not on a Mac)
  • I read AGENTS.md and this doesn't reintroduce anything deliberately removed
  • Docs updated if behavior changed

https://claude.ai/code/session_01YB7DWdZjLUzBvjaemnSBk4

scripts/screenshot.swift finds an app's on-screen window (optionally by
title substring) via CGWindowListCopyWindowInfo and shells out to
screencapture -l, keeping the macOS corner radius and drop shadow in the
PNG alpha. scripts/beautify.swift composites that capture onto the
site's brand gradient with proportional padding.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YB7DWdZjLUzBvjaemnSBk4
Comment thread scripts/beautify.swift
@alexkroman alexkroman enabled auto-merge July 8, 2026 00:04
@alexkroman alexkroman added this pull request to the merge queue Jul 8, 2026
Merged via the queue into main with commit cd74cc7 Jul 8, 2026
6 checks passed
@alexkroman alexkroman deleted the claude/screenshot-beautify-script-4d1e4y branch July 8, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants