Screenshot to OCR on OS X?
I have used FastScripts to assign a keyboard shortcut to this script:
screencapture -i /tmp/tesseract.png
tesseract /tmp/tesseract.png stdout|tr -d \\f|pbcopy

brew install tesseract installs tesseract. tesseract prints to STDOUT when the output file name is specified as stdout. tesseract adds a form feed character to the end of the output.
Edit: tesseract isn't very accurate, so I now use Google's Cloud Vision API instead:
curl -sH&quot;Authorization:Bearer $(gcloud auth application-default print-access-token)&quot; -HContent-Type:application/json\;charset=utf-8 https://vision.googleapis.com/v1/images:annotate -d@&lt;(printf %s '{&quot;requests&quot;:[{&quot;image&quot;:{&quot;content&quot;:&quot;'&quot;$(base64 path/to/input/file.png)&quot;'&quot;},&quot;features&quot;:[{&quot;type&quot;:&quot;TEXT_DETECTION&quot;}]}]}')|jq -r '.responses[0].fullTextAnnotation.text'

Demo: https://cloud.google.com/vision/docs/drag-and-drop. It even works with Japanese and Chinese text.