Pasteboard Textinsertion

Inserting text into other macOS applications via clipboard simulation, CGEvent keystroke typing, and Accessibility API direct text field access. Covers NSPasteboard read/write with clipboard preserve/restore, CGEvent keystroke simulation (Cmd+V paste, character-by-character typing), AXUIElement for direct text field manipulation, variable/placeholder expansion ({{clipboard}}, {{date}}, {{cursor}}), user-prompted variables ({{?name:prompt:default}}), cursor positioning after insertion, and insertion method fallback chains. Use when building prompt managers, text expanders, snippet tools, or any app that needs to insert text into other applications.

makgunay Updated 1 repo stars

File contents

makgunay/claude-swift-skills commit 4214dc83af

Frequently asked questions

npx get-skill add makgunay/pasteboard-textinsertion