!7 p { File tesseract = userHome("local/bin/tesseract"); if (!fileExists(tesseract)) tesseract = findCmdOnPATH("tesseract"); if (tesseract == null) print("Tesseract not found on PATH"); File png = getProgramFile("screen.png"); print("Making screenshot."); shootScreenAsPNGFile(png); print("Running Tesseract."); time { print(backtick(print("tesseract " + platformQuote(png) + " stdout"))); } }