Having some trouble with a project and hopefully someone can help.

I'm trying to take extracted text from tesseract-ocr and use that text as the search query of Google Chrome searches. My shell script can extract the text and launch Chrome, but I cant figure out how to send the text to the search bar of Chrome.

Below are some pictures of my script.

enter image description here

enter image description here

closed as off-topic by fsb, Tetsujin, Allan, Glorfindel Feb 28 '18 at 12:48

  • This question does not appear to be about Apple hardware or software within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    I'm voting to close this question as off-topic because it's a Basic Customer Support question. Please see the meta post linked above for details on how to proceed if you can edit the post and, if put on Hold, have the Hold reviewed. You can also contact the software developer for assistance with their product. – fsb Feb 28 '18 at 5:05
  • This is not a Mac issue per se. the issue you are having is creating the search query URI to pass to Chrome when it's launched. You need to research how do do that through Google. – Allan Feb 28 '18 at 11:59
  • Does Chrome on Mac support Applescript? That might be a way to make it a Mac question if the question is re-written a little... – Steve Chambers Feb 28 '18 at 14:45
  • It's purely a "how to use Google Search from Python" question – nohillside Feb 28 '18 at 18:51
  • Not quite, I can find many write ups on "how to use Google Search from Python" but nothing that explains how to feed OCR text into the python script that launches the google search. – Hunter Rios Feb 28 '18 at 20:39

Browse other questions tagged .