6 ms·
you can use clipboard with pbpaste/pbcopy commands ocr-text "$1" && pbpaste
by srott 3y ago
you can use clipboard with pbpaste/pbcopy commands
ocr-text "$1" && pbpaste
- llimllib 3y agoIt also outputs to the command line if you pipe it to cat shortcuts run ocr-text -i new-haven-pizza.jpg | cat
- philsnow 3y agoOddly enough if you enable it as a "quick action", when you run it, Finder creates a file in the same directory as the image containing the OCRed text (and named according to the first line of OCRed text). I went back into my shortcut and Shortcuts added a pseudo-action "Stop and output <copy to clipboard>; if there's nowhere to output: <Do Nothing>", and I would think that "Do Nothing" would mean don't create a file, but I guess Quick Actions has some kind of special meaning given that all the other ones seem to be intransitive actions, implying that the user wants a file as the output.