ShareShortcuts

Live Text OCR (Batch)

te55eract
Fork “Live Text OCR (Batch)”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so te55eract gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
13K
Saved
0
Actions
26
Category
Productivity
Version
2.0
Language
EN

Batch OCR–Extract the text from several images as separate files


  • Batch OCR (text recognition) multiple images or files at the same time.
  • Select whether to keep the text formatting or merge all of the texts into single lines.
  • Save the results to Files.

Supports images and PDFs

What's New

Version 2.0

Fixed output file names to reflect input file names

Version History
2.0 Jun 14, 2026

Fixed output file names to reflect input file names

1.0 Jul 26, 2025

First release

What it does

26 actions
  1. Comment
    Extract the text from miltiple images. Choose: Formatting is preserved or Content is merged into a single line
  2. Set Variable
    Images
  3. If
  4. Choose from Menu
    Choose From
  5. Choose from Menu
    Files
  6. Select File
  7. Choose from Menu
    Photos
  8. Select Photos
  9. Set Variable
    Images
  10. Choose from Menu
    Output Formatting
  11. Choose from Menu
    Keep Formatting
  12. Number
  13. Set Variable
    Formatting Flag
  14. Choose from Menu
    Remove Formatting
  15. Number
  16. Set Variable
    Formatting Flag
  17. Select File
  18. Repeat with Each
  19. Get Name
  20. Extract Text from Image
  21. If
  22. If
  23. Split Text
  24. Combine Text
  25. Save File
  26. Rename File

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/photos'
#include 'actions/documents'
#define color red

/*
Extract the text from miltiple images.

Choose:
Formatting is preserved
or
Content is merged into a single line
*/
@Images = ShortcutInput

if !@Images {
	menu "Choose From" {
	item "Files":
		selectFile(true)
	item "Photos":
		selectPhotos(true)
	}
	@Images
}

menu "Output Formatting " {
item "Keep Formatting":
	@FormattingFlag = 1
item "Remove Formatting":
	@FormattingFlag = 0
}
const File = selectFile()

for _ in @Images {
	getName(@RepeatItem)
	const TextFromImage = extractImageText(@RepeatItem)
	if @FormattingFlag == 1 {
	} else {
		const SplitText = splitText(TextFromImage, "
")
		const MergedText = joinText(SplitText, " ")
	}
	const SavedFile = saveFilePrompt(IfResult)
	rename(SavedFile)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by te55eract

See All

You Might Also Like

See All
Advertisement