Skip to main content
coreydaley.dev
Docs menu

Ask Apple Intelligence about an archive

You can ask Apple Intelligence what’s in an archive without extracting it: “What’s in here?”, “Is there an installer or an app in this?”, “Which files are over 100 MB?”. Purrchiver’s Inspect Archive Shortcuts action lists the archive’s files and their sizes, and the Shortcuts app’s own Use Model action answers questions about that list. Purrchiver doesn’t do any AI itself and makes no network connections. You choose the model in Use Model, and that choice decides whether the file list leaves your Mac.

Use Model needs a Mac with Apple Intelligence turned on. Inspect Archive is free. I tested this on macOS 27.2 with Purrchiver 1.0.1 and a 1.1 build.

Build the shortcut

  1. In Shortcuts, make a new shortcut and name it, say, “Ask about archive”.
  2. Add Purrchiver’s Inspect Archive action, with Shortcut Input as its Archive.
  3. Add Use Model and pick a model (see below). Type your question in the prompt box, then insert the Inspect Archive variable after it. Starting with “Here is the list of files inside an archive.” tells the model what it’s reading.
  4. In Use Model’s options, set Output to Text. In my tests, leaving it on automatic sometimes produced no text at the end of the shortcut.
  5. Add Stop and Output with the Response. (Show Result shows it in a window instead; I didn’t test that.)

I ran it from Terminal, passing the archive as the input and saving the answer to a file:

shortcuts run "Ask about archive" -i ~/Downloads/archive.zip -o ~/Desktop/answer.txt

The answer is in answer.txt on your Desktop.

You can also turn on Use as Quick Action in the shortcut’s details to run it on a file in Finder; I didn’t test that route. The first run of a new shortcut asks for permission. Choose Always Allow, or it asks on every run.

On a made-up test archive of 17 entries (an app bundle, a 125.8 MB installer package, notes, two photos and a 157.3 MB video), these prompts went to each of the three models:

QuestionWhat came back
“In one short paragraph, say what is in this archive.”Correct from all three. Cloud and Cloud Pro named the app, installer, notes and photos; On-Device stayed general (“a macOS application, configuration files, text documents, and multimedia content”).
“Is there an installer or an app in here? Answer yes or no, then name them.”“Yes”, with Setup-2.4.pkg and Tools.app, from all three.
“Which files are over 100 MB? List each path and its size.”Cloud and Cloud Pro: the installer and the video, with their sizes. On-Device listed the two photos (300 KB and 400 KB) as well in two of three runs, both with 1.0.1, and once called them over 100 MB; it was right once, with the 1.1 build.

Which model sees your file list

Use Model offers these choices. Purrchiver doesn’t pick one, and nothing is sent anywhere until the shortcut runs.

  • On-Device runs on your Mac and works offline. It’s the only model that keeps the file list on the Mac. Leave Use Model’s Use Broad World Knowledge off as well, since that lets the model go out to the web.
  • Cloud and Cloud Pro run on Apple’s Private Cloud Compute servers, so the file list is sent there to answer the question. Cloud Pro isn’t available on every iCloud plan.
  • ChatGPT is offered once you’ve set up the ChatGPT extension in System Settings, and then the list goes to OpenAI. I didn’t test it.
  • Ask Each Time lets you choose on every run.

What it can get wrong

  • It reads names and sizes, not contents. Inspect Archive lists each entry’s path, size and whether it’s a folder. The model never sees what’s inside the files, so “is this safe?” or “what does this document say?” are guesses from file names.
  • It gets details wrong. Besides the size mix-up above, On-Device made up a date range for an archive of log files, and Cloud miscounted the files per folder in another. The smaller On-Device model made more mistakes in my tests.
  • Big archives are too long. Past a limit, Use Model stops with “The request exceeded the maximum allowed length.” With short paths, On-Device answered for 25 entries but not 100, and Cloud for 200 but not 400. For a larger archive, open it in Purrchiver instead.
  • Without the list, it makes things up. If the Inspect Archive variable is missing from the prompt, the model still answers, describing files that aren’t there. If an answer doesn’t match the archive, check the prompt has the blue variable in it.

Treat any answer as a first look, and check what matters in Purrchiver’s window, which shows the real list.

Don't have Purrchiver yet? It's free on the Mac App Store.