A native macOS menu bar app that captures a window, the full screen, or a dragged rectangle on a global hotkey, saving it as PNG, JPG, or GIF into a configurable folder with configurable folder/filename templates.
Current version: 2.3 (2026-10-05)
Core features are implemented:
- Window capture, full-screen capture, and region capture (drag a rectangle on a dimmed overlay, like macOS's built-in Cmd+Shift+4), each on its own independent global hotkey
- Output format is selectable — PNG, JPG (with adjustable quality), or GIF
- Folder/filename templates with placeholder tokens: date/time
(
{YYYY}/{MM}/{DD}/{hh}/{mm}/{ss}), the captured window's{title}/{app}, a persisted incrementing counter ({NUM}), random alphanumeric strings of any length ({RRR...}— the number ofRs sets the length), and a unique per-folder hash ({hashN}— e.g.{hash5}for 5 characters, a Base62-encoded MD5 hash of the destination folder name) - Search/replace filters on the rendered folder name, and nested
subfolders by putting
/directly in the folder name template (e.g.{YYYY}/{MM}-{DD}) - An in-app Help sheet listing every template token
- Optional save notifications (banner and/or sound, independently toggleable), with an optional click-to-open of the just-saved screenshot (in a configurable app), and copy-to-clipboard
- "Browser Content Only" (Settings → Behavior, also toggleable from the menu bar dropdown): window captures of a browser include only the web page content, cropping out the tab bar, bookmarks bar, URL bar, and window border
- Menu bar shortcuts to open the last screenshot (in a configurable app), reveal it in Finder, open the root folder, or toggle Browser Content Only
- Launch at login
macshot is distributed via this GitHub repository — either as a signed, notarized DMG from Releases (no Gatekeeper warnings, just open and drag to Applications), or as source you build yourself (see below).
-
macOS 14.0 or later to run
-
Xcode 15 or later (developed with Xcode 26.6)
-
Homebrew and XcodeGen, to generate the Xcode project from
project.yml:brew install xcodegen
git clone https://github.com/hteibler/macshot.git
cd macshot
xcodegen generateThis creates macshot.xcodeproj. Either:
-
Open it in Xcode and press Run, or
-
Build from the command line:
xcodebuild -project macshot.xcodeproj -scheme macshot -configuration Debug build
The built
.applands under Xcode's DerivedData (~/Library/Developer/Xcode/DerivedData/macshot-*/Build/Products/Debug/macshot.app).
If you edit project.yml (targets, settings, build phases), re-run
xcodegen generate to regenerate macshot.xcodeproj before building.
Producing the notarized DMG published in Releases requires a Developer ID Application certificate (Apple Developer Program membership) and isn't needed to just run or hack on macshot — a plain Debug build is fine for that. For reference, the release process is:
xcodegen generate
xcodebuild -project macshot.xcodeproj -scheme macshot -configuration Release \
archive -archivePath build/macshot.xcarchive
xcodebuild -exportArchive -archivePath build/macshot.xcarchive \
-exportPath build/export -exportOptionsPlist ExportOptions.plist
ditto -c -k --keepParent build/export/macshot.app build/macshot.zip
xcrun notarytool submit build/macshot.zip --keychain-profile "xcode" --wait
xcrun stapler staple build/export/macshot.app
# package into build/macshot-<version>.dmg with an Applications symlink, then:
codesign --sign "Developer ID Application: <Name> (<TeamID>)" --timestamp build/macshot-<version>.dmg
xcrun notarytool submit build/macshot-<version>.dmg --keychain-profile "xcode" --wait
xcrun stapler staple build/macshot-<version>.dmgUsing xcodebuild ... build directly (instead of archive +
-exportArchive) produces a binary notarization will reject — it's
missing a secure timestamp and carries the get-task-allow debug
entitlement, both of which the archive/export path strips.
macshot runs as a menu bar–only app (no Dock icon) — look for the camera icon in the menu bar after launch. The first capture attempt triggers a Screen Recording permission prompt (System Settings → Privacy & Security → Screen Recording); grant it and try the hotkey again. Click the menu bar icon → Settings to configure the root folder, folder/filename templates, output format, all three hotkeys, and clipboard/notification/login behavior. There's also a Help button in Settings listing every template token.
Enabling "Browser Content Only" (Settings → Behavior) triggers a separate Accessibility permission prompt (System Settings → Privacy & Security → Accessibility) on first use; until granted, or for windows that aren't a browser, the full window is captured instead. Chromium-based browsers (Chrome, Edge, Brave, …) only build their web-content accessibility tree on demand — the first capture of a Chromium browser window after enabling this toggle may still return the full window while that tree builds in the background (up to ~1s); every capture after that is cropped correctly for the rest of that browser session. Safari/WebKit doesn't have this delay.
Self-built (unsigned/ad-hoc) apps lose Screen Recording and
Accessibility grants on every rebuild. Xcode's local "Sign to Run
Locally" identity changes with each build, so macOS treats each rebuild
as a new, unrecognized app for these two permissions — re-grant both
(and relaunch) after every xcodebuild/Xcode build during development.
This doesn't affect the signed release DMG.
Notifications require a real code signature. The released DMG is
properly signed and this just works. If you're building from source
without a Development Team configured in Xcode (Settings → Accounts, then
select that team for the macshot target's signing), the app is signed
ad-hoc/locally only, and macOS's notification system won't authorize it —
the "Notify on Save" toggle will silently do nothing. A free Personal Team
is enough to fix it; everything else works fine without one.
If notifications still aren't showing up (e.g. the system permission prompt was missed or dismissed on first launch), go to System Settings → Notifications → macshot and activate it there.
MIT — see LICENSE.md.