How do you copy text to the clipboard in C or with a Command-Line command?
+4
A:
pbcopy and pbpaste are your friends on the command line:
echo 'send' | pbcopy
pbpaste > receive.txt
Take a look at the Pasteboard Manager Reference and guide for details on doing this in C.
WhirlWind
2010-04-09 01:57:43