---
title: 'Revisiting appinfo: Mac app details from the command line'
date: 2021-10-20 14:12
slug: revisiting-appinfo-mac-app-details-from-the-command-line
categories:
- Code
tags:
- scripting
- support
- terminal
---

A [few years back](/2017/07/25/appinfo-get-app-details-quickly-in-terminal/) I wrote a little script called `appinfo` to make getting info about an
installed application a little simpler (and prettier). It's served me
well over the years. I added a couple of things to it today and figured
I'd mention it again.

![Appinfo screenshot](https://brettterpstra.com/uploads/2021/10/appinfo-screenshot.jpg)

This script is a lot like doing a Get Info on an app in Finder, just
without having to open your Applications folder, or having to expand
hidden sections in the info window. Just type `appinfo APP_NAME` to get
instant, pertinent info. One common application is getting the bundle
identifier for an app, for use in scripting (or with Bunch).

First, I added an architecture check. Back in 2017 only Intel binaries
mattered, so that wasn't included. Now it will tell you if the app is
compiled for Intel, Apple Silicon, or both.

I also added handling for info returned by `mdls` as arrays, so keys like "Alternate Names" and Architecture can be output in a friendly way. This means you can also add new keys to the script's config section with abandon.

Just for fun, I added support for
[chafa](https://github.com/hpjansson/chafa/) (in addition to the
existing support for `imgcat`). If you have one of these installed and
your terminal supports it, the app icon will be included in the info
output.

That's it. An update simple simple enough that I actually have time to write about. Unlike
what's happening with [doing][1826-0001] right now... once I finish the
current version of that, I'm going to need a couple hours to detail what I've
done to it lately.

Check out the script [in this gist][gist]. Just save it in your path as
`appinfo` and make it executable with `chmod a+x appinfo`. It takes the
name of the app you want info for (must be installed on your machine):
e.g. `appinfo Preview`.

[1826-0001]: http://brettterpstra.com/projects/doing
[gist]: https://gist.github.com/ttscoff/0be33bf2cace95ff26fd787da25df239

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
