Thirty photos of a contract, a folder of scanned letters, every slide from a conference: reading them one at a time with Live Text works, but it takes an afternoon. A Mac can read the whole set in one pass and hand you a single block of text. The part that goes wrong isn’t the recognition, it’s the order, so start there.
Rename the files so they sort in reading order (page-01, page-02…). Then build a shortcut that sorts the selected images by name, runs Extract Text from Image on each inside Repeat with Each, joins the results with Combine Text and copies them. In Terminal, loop over the files with a small Vision script. Unpixel’s Open Image… reads up to 50 pages as one capture.
Get the order right first
Every batch method reads files in a sequence, and that sequence usually comes from the file names. The trap is how names sort. Finder is clever and puts page-2 before page-10. A Terminal wildcard, like many other tools, compares character by character instead, so page-10 comes first, because “1” sorts before “2”. Names with the same number of digits sort the same way everywhere.

The fix is to give every number the same width. Finder’s batch rename can do it:
- Sort the Finder window so the files appear in reading order, for example by Date Created for scans. Finder numbers them in the window’s sort order, not the order you clicked them in.
- Select the files, Control-click one and choose Rename.
- In the first pop-up menu, choose Format. In the next one, choose Name and Counter, which pads numbers with zeros (
page-00001), rather than Name and Index (page-1). - Type a name such as “page-” in Custom Format, set Where to after name, and enter 1 in Start numbers at.
- Check the example at the bottom of the dialog, then click Rename. If the result is wrong, Edit → Undo Rename puts the old names back.
Photos straight off a phone are often already in shooting order, because their names count up. Scans from a printer or a scanning app may restart at 1 for each session, so check before you read 200 pages in the wrong order.
With Shortcuts
The free Shortcuts app can read a whole selection of images. Build it once:
- Open Shortcuts, click the add button and name the shortcut “Text from Images”.
- Click the Shortcut Details button (ⓘ), click Details and select Use as Quick Action. In the Receive line, limit the input to Images.
- Add Filter Files and show its options. Set Sort by to Name and Order to A to Z, so the order no longer depends on how you clicked.
- Add Repeat with Each, and inside the loop add Extract Text from Image, reading the Repeat Item.
- After End Repeat, add Combine Text and set the separator to New Lines.
- Add Copy to Clipboard.
Select the images in Finder, Control-click and choose Quick Actions → Text from Images. Paste into TextEdit or Pages.
The text arrives in one block, with no marker where one image ends and the next begins. The Extract Text Quick Action for Finder adds each file’s name as a heading and saves the result to Notes.
Read new files automatically
On macOS 26 or later, Shortcuts can run by itself when a folder changes. Click Automation in the Shortcuts sidebar, add one for your scans folder, and give it a shortcut that extracts the text and appends it to a note. Every page you scan into that folder then turns into text without a click. Shortcuts won’t watch a folder on an external drive, so keep the folder on your Mac. OCR with a folder action covers the setup in detail.
With Terminal
For large batches, or if you’d rather script it, Apple’s Vision framework is available from the command line. Our command-line OCR guide has a short Swift script, ocr, that prints the text in any image. With it compiled, one loop reads a whole folder:
for f in ~/Scans/*.png(n); do
print -- "--- $f:t"
./ocr "$f"
print
done > ~/Desktop/all-text.txt
The (n) at the end of the pattern is a zsh feature that sorts numbers by value, so page-2 comes before page-10 even without zeros. The print line writes each file’s name above its text, which makes the result easy to check.
You can also run the Shortcuts version from Terminal: shortcuts run "Text from Images" -i ~/Scans/*.png(n). To get the text back as a file, end the shortcut with Stop and Output instead of Copy to Clipboard, and add -o ~/Desktop/all-text.txt.
Many files in one go with Unpixel
If you’d rather not build anything, Unpixel reads a selection of files as one capture:
- Click the Unpixel icon in the menu bar, then click Open Image… in its panel.
- Select the files, with ⌘A or ⇧-click, and click Copy Text.
- Paste. Each file’s text follows the previous one, with a blank line between them.

It accepts PNG, JPEG, HEIC, TIFF, GIF, BMP, WebP and PDF, and you can mix them. Dropping files on the menu bar icon or the panel does the same thing. The files are read on your Mac, and the result is one item in Unpixel’s searchable history, labelled with the first file name and how many more.
If a file can’t be read, the rest still are, and the confirmation says so, for example “Copied text from 2 of 3 files”. It reads files in the order the dialog hands them over, so glance at where each file’s text starts before you rely on it.
Over 50 pages
Unpixel reads up to 50 pages per capture, counting every image and every PDF page. Past that, the confirmation says what was left out: “Read the first 50 pages.” when the limit falls inside a PDF, or “Stopped at 50 pages, so …” with the names of the files that weren’t read. For bigger jobs:
- Split the files. Select files 1–50, copy and paste, then 51–100, and so on into the same document.
- Split a long PDF. In Preview, choose File → Print…, set the page range to 51–100, then choose Save as PDF from the PDF menu. Shortcuts’ Split PDF Into Pages action is another way.
- Use the script. The Terminal loop above has no page limit; a long batch just takes longer.
Before any of this, check whether the PDF needs OCR at all. If it was exported from a document rather than scanned, the text is already inside. Open it in Preview, press ⌘A and ⌘C, and paste: if real text arrives, you’re done.
Check the result
A batch can be wrong in ways a single capture can’t. Before you rely on the text:
- Look at the joins. Read the last line of one page and the first of the next.
- Remove repeated lines. Page numbers and running headers appear once per page. Find & Replace clears them in one go.
- Check numbers and names. OCR rarely misreads a whole word, but it does swap 0 and O, or 1 and l, now and then.
- Watch the columns. Two-column pages may be read across instead of down; see OCR and multi-column layouts.
Frequently asked questions
Why is the text from page 10 before page 2?
Many tools sort names character by character, so “10” comes before “2”. Add leading zeros (page-02, page-10) and the order is the same everywhere: Finder, Shortcuts and Terminal.
Does batch OCR keep the page layout?
No. You get plain text in reading order, page after page. Columns, headers and footers come through as ordinary lines, so expect to tidy them.
Can new scans be read automatically as they arrive?
Yes, on macOS 26 or later. A Shortcuts automation can run when files are added to a folder, extract the text and append it to a note.
Is it faster to combine the images into one PDF first?
Not faster, but it fixes the order in one place. Preview lets you drag page thumbnails into order, and the PDF then reads as one document.
Sources
- Rename files, folders and disks on Mac — Apple Support (Mac User Guide) support.apple.com
- macOS Hidden Treasures: Batch Rename Items in the Finder — TidBITS tidbits.com
- Use Repeat actions in Shortcuts on Mac — Shortcuts User Guide (Apple Support) support.apple.com
- Run shortcuts from the command line — Shortcuts User Guide (Apple Support) support.apple.com
- macOS Tahoe 26 — Apple Newsroom (June 2025) apple.com




