Name PDFs After OCR with Apple Intelligence and Local AI
We show you how to read complex designations such as the sender, company, or recipient from documents and use them for file naming.
You can download OnDevice OCR Business for free from the Mac App Store and test all features. The only limitation is a watermark in the output files.
With OnDevice OCR Business, on Macs with Apple Silicon (macOS 26+) you can use Apple’s own AI model, “Apple Intelligence”, or use other (local) AI models for file naming via the integrated Ollama interface.
To demonstrate naming with Apple Intelligence, we use this fictitious letter as an example.
Open OnDevice OCR Business and click “Name Files” → “New Template”.
Click “Test with Sample Files” and choose one or more documents.
Remove the “Original Name” component by clicking the “x”.
Click “Search an Area in the Document” and drag with the mouse to select the area of the document that contains the term or value you are looking for.
The sample document serves here as a model for all documents that will be named with this template in the future. So from now on, for every PDF, the AI is given the task of reading the sender’s company name in the selected area.
Under “Method”, click “Read by Apple Intelligence”.
Depending on your Mac and operating system, you can use “Uses” to specify whether the AI model receives only the recognized text for interpretation or also the image for visual recognition. The latter is significantly more reliable for complex layouts.
Now enter a short, precise prompt for the AI model and click “Evaluate now”.
Under “Found”, you can see whether the AI interpreted your request correctly.
This is not an exact science. Try out which prompt works best for which document. The shorter and more precise, the more reliable.
Now give the component a name, e.g. “Sender”, and click “Done”.
Add the “Space” component and click “Search an Area in the Document” again to read another value with Apple Intelligence.
Drag to select the area on the document again → “Read by Apple Intelligence” and formulate the next instruction, this time for the contract number.
Because the AI can see your document, it can also read difficult things.
Name the component “Contract No.” and click “Done”.
Finally, you can use “Test with Different Sample Files” to load a different, similar document to make sure the template works.
The preview shows you what the file name would later look like for this sample file.
Name the template, for example, “Sender & Contract No.” and click “Save”.
You’re all set
Your templates are now available for selection in every processing path: in hot folders, in manual batch processing, and in Apple Shortcuts.
It gets even more convenient with rules: if the app finds certain search terms in the document, such as “Contract No.”, it automatically selects the matching template, here “Sender & Contract No.”. This way, all document types for which you have created a template are named automatically and, if you wish, filed directly in the right folder.
Frequently asked questions about naming with Apple Intelligence and Ollama#
What are the requirements for file naming with Apple Intelligence?
You need a Mac with Apple Silicon and macOS 26 or later, and Apple Intelligence must be turned on in System Settings. However, we recommend macOS 27 or later, as Apple introduced the new AFM 3 Core & Core Advanced models with this version, which are not only significantly more capable but also multimodal. These new Apple Intelligence models can therefore analyze not just text but also images, which is a great advantage for understanding complex layouts.
These requirements do not apply to using AI models via Ollama. However, using local models, which we recommend for privacy reasons, also requires at least 16 GB of RAM.
Is automatic file naming with AI also available in OnDevice OCR Pro?
Yes. OnDevice OCR Pro, our app for home users who do not need business features such as document separation and PDF/A export, has both the naming and the sorting feature.
Which AI models can I use via Ollama?
You can use any model that you have installed in Ollama or that you have access to in Ollama. OnDevice OCR Business reads the list directly from Ollama, and you select the model in the app. Gemma 4, for example, has proven to work well. Ollama must be running on the same Mac as OnDevice OCR Business.
Can cloud models such as gpt-oss, GLM, or DeepSeek also be used for file naming?
Yes, in theory you can also integrate cloud models via Ollama. The full list is available at ollama.com. However, we do not recommend this because, unlike with local models, your documents and their contents then leave your Mac, and the high level of privacy offered by OnDevice OCR can no longer be guaranteed.
What do “Text Only” and “Text + Image” mean?
With “Text Only”, the AI model receives the recognized text from the selected area. With “Text + Image”, it also receives the image of the area and can therefore recognize layout, logos, and tables as well. This is significantly more reliable for complex documents. The image option is available with Apple Intelligence from macOS 27 onwards and, via Ollama, for all models that can also process images.
How reliable is naming with AI?
That depends heavily on the chosen model. There are now many very capable local AI models for which file naming is no problem. You can use them via the Ollama interface. Important: Keep the instruction as short and precise as possible, e.g. “Return only the contract number”, “Return only the company name”, “Return only the subject”, and test the template with sample files.
Errors are still possible, however, which is why routine checks are advisable.
How long does the AI analysis take?
This, too, depends heavily on the model and the performance of your Mac. The first request usually takes a little longer because a local model first has to be loaded into memory. Once loaded, however, it is often very fast.
You can download OnDevice OCR Business and Ollama for free and test in advance whether they run on your system.
Do my documents leave the Mac in the process?
No. If you use Apple Intelligence or other local AI models such as gemma-4-31B via Ollama, your documents are analyzed on your Mac.
General questions about pricing, licensing, languages, and system requirements are answered in the FAQ on the home page.