Get Mac System Info Quickly with Alfred

Build an Alfred workflow to quickly retrieve macOS version, memory, and other system info, with AppleScript and Shell.

Feb 11, 2021 · 1 min read · 201 Words · -Views -Comments · Software & Tools
Mac 效率工具 🇨🇳 阅读中文版
Read with AI

Choose an AI assistant

ChatGPT Open in a new tab with the article link and prompt
Claude Copy the prompt, then open Claude

Open Claude
Trouble reading the article?

If the prompt is missing, copy the full prompt below into your AI assistant. If the AI cannot read the article, paste the visible passage you want to discuss and add your question.

Sometimes you need to quickly check macOS version or memory info. The usual flow — Apple menu > About This Mac > find the right tab > copy — is clunky. So I built a simple Alfred workflow to fetch basic system info quickly.

效果

Note: Select an item and press Enter to copy to clipboard.

Download: https://github.com/alanhe421/alfred-workflows/tree/master/about-mac

How it works

  1. Use AppleScript to retrieve system info
  2. Use Shell to build and print an Alfred‑compatible list

AppleScript and Shell are built‑in, so there are no extra dependencies. Check the source if you’re curious.

Learning AppleScript

For workflows, AppleScript is handy for system info and automating apps (e.g., opening a Chrome tab). I struggled with the official docs — a good book was faster to learn from:

Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition

Final Thoughts

  • This is my 20th workflow — building small tools for personal needs is satisfying.
  • Writing tools is also a great way to learn and practice — keep going.
Authors
Developer, digital product enthusiast, tinkerer, sharer, open source lover