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 4214dc8 8.5 KB Updated

File contents

makgunay/claude-swift-skills/tree/main/pasteboard-textinsertion commit 4214dc83af

Frequently asked questions

npx skillmds@latest add makgunay/pasteboard-textinsertion