Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To place contents in a file (not claiming this is the most efficient way but it works)

OCRTHISFILE="ocr-test.jpg"

shortcuts run ocr-text -i "${OCRTHISFILE}"

pbpaste > ${OCRTHISFILE}.txt

or to view output and place in file:

OCRTHISFILE="ocr-test.jpg"

shortcuts run ocr-text -i "${OCRTHISFILE}"

pbpaste | tee ${OCRTHISFILE}.txt



Or use MacOS shortcuts to output ocr text as file (Action: "Append to Text File")


Yes took a bit of fiddling but that does work thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: