Extend macOS Finder right-click menu with quick file creation and terminal access.
macOS has long lacked a built-in "New File" option in Finder's context menu — something Windows users take for granted. MacRight fills this gap with a lightweight Finder Sync Extension.
- New Text File — Create an empty
.txtfile in the current directory - New Word Document — Create a blank
.docxfile - New Excel Spreadsheet — Create a blank
.xlsxfile - New PowerPoint Presentation — Create a blank
.pptxfile - Open Terminal Here — Launch Terminal.app or iTerm2 at the current directory
All menu items appear directly in Finder's right-click context menu — no extra clicks needed.
- macOS 13.0 (Ventura) or later
- Apple Silicon or Intel Mac
Download the latest .dmg from Releases, open it, and drag MacRight.app to /Applications.
# Clone the repository
git clone https://github.com/AgentBuff/mac-right.git
cd mac-right
# Generate blank Office templates
python3 Scripts/create_templates.py
# Build, sign, install, and launch
./build.shOnly Xcode Command Line Tools are required (
xcode-select --install). Full Xcode is optional.
After installation, you need to manually enable the Finder extension:
- Open System Settings
- Go to General → Login Items & Extensions
- Click Added Extensions
- Find MacRight and enable the Finder Extension
Or launch MacRight.app and click the "Open System Settings" button.
- Right-click (or Control-click) in any Finder window
- You'll see MacRight's menu items in the context menu
- Click to create a file or open terminal
Created files use auto-incrementing names to avoid conflicts:
Untitled.docx → Untitled 2.docx → Untitled 3.docx
Open MacRight.app and go to Settings (Cmd + ,):
- Terminal: Choose between Terminal.app and iTerm2
- File Types: Toggle which file types appear in the context menu (Word, Excel, PowerPoint)
Settings sync between the host app and extension via App Group shared UserDefaults.
MacRight.app (Host App — SwiftUI settings UI)
└── Contents/PlugIns/
└── FinderSyncExtension.appex (Finder Sync Extension — context menu)
- Host App: Displays extension status, provides settings UI, guides users to enable the extension
- Extension: Registers with Finder via
FIFinderSync, builds context menu, handles file creation and terminal launching - Communication: App Group shared
UserDefaults(group.com.macright.app)
For detailed architecture, see docs/ARCHITECTURE.md.
| Component | Technology |
|---|---|
| Language | Swift 5.9+ |
| Host App UI | SwiftUI |
| Extension | FinderSync framework (AppKit) |
| Build | swiftc CLI + shell script (no Xcode required) |
| File Templates | Minimal Office Open XML (ZIP-based) |
| Dependencies | None (pure Apple frameworks) |
See the full Development Guide for:
- Environment setup
- Build system details
- Debugging techniques
- How to add new file types or menu items
- App Sandbox & entitlements
- Packaging & distribution
# Build and install
./build.sh
# View extension logs
log stream --predicate 'eventMessage CONTAINS "MacRight"'
# Check extension registration
pluginkit -m -p com.apple.FinderSync- Submenus not supported — macOS Sequoia has a bug where Finder Sync Extension submenus dismiss prematurely. All items use a flat menu layout.
- System directories — Sandbox restrictions prevent file creation in system directories like
/Usersor/Applications. This is expected macOS behavior. - Ad-hoc signing — Without a Developer ID, other users need to right-click → Open to bypass Gatekeeper on first launch.
Built with Swift and Apple's FinderSync framework. No third-party dependencies.