{"by":"nberkman","descendants":14,"id":44577869,"kids":[44580072,44585500,44581959,44585361,44589339,44582328],"score":34,"text":"I made clippy because pbcopy can&#x27;t do something I needed every day: copy files to paste into GUI apps. When you pbcopy &lt; image.png, you get raw bytes instead of a file that Slack or email can use.<p>Clippy fixes this:<p>- clippy report.pdf → ⌘V into any app uploads the file<p>- curl image.png | clippy → pipes become pasteable files<p>- clippy *.jpg → multiple files at once<p>- Text files still work like pbcopy<p>Technical: Direct Objective-C bindings via CGo. Copies file references (like Finder), not contents. Auto-cleans temp files. No AppleScript hacks.<p>Install: brew install neilberkman&#x2F;clippy&#x2F;clippy","time":1752630124,"title":"Show HN: Clippy – a better pbcopy for macOS that handles files properly","type":"story","url":"https://github.com/neilberkman/clippy"}