batch_ocr.gs function extractTextOnOpen() { //ADD YOUR VALUES BELOW var folderName = "[YOUR PROJECT FOLDER]"; var sheetId = "[YOUR SHEET ID]"; //Define folder var folder = DriveApp.getFoldersByName(folderName).next(); var folderId = folder.getId(); //Find all jpegs in folder var images = folder.getFilesByType("image/jpeg"); while (images.hasNext()) { //Convert each jpeg to a Google Doc with OCR va
![Google Apps script for performing OCR on all JPEGS found in the specified Drive folder. Extracts text to a Google sheet, where it's mapped to the JPEG's filename. · GitHub](https://cdn-ak-scissors.b.st-hatena.com/image/square/3bee82c7f10f49ac6c52299be9b4859b1ed55b29/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fimages%2Fmodules%2Fgists%2Fgist-og-image.png)