Demo • Features • Installation • Usage • Building • License
https://github.com/reputasyon/TextGrab/releases/download/v0.1.0/TextGrab-Promo.mp4
Press Control + Option + T, select a region, text is copied to your clipboard. That's it.
- Instant OCR — Select any region on screen, get the text in your clipboard
- Global Hotkey — Works from any app with
⌃⌥T(customizable) - Multi-Language — Turkish, English, German, French recognition
- Apple Vision — Uses Apple's native Vision framework for high accuracy
- Multi-Monitor — Works across all connected displays
- Retina Support — Captures at native resolution for best OCR results
- Lightweight — Menu bar app, no dock icon, ~860 lines of Swift
- Privacy First — Everything runs locally, no data leaves your Mac
Download the latest release from Releases.
git clone https://github.com/abdullahcadirci/TextGrab.git
cd TextGrab
swift build -c releaseThe binary will be at .build/release/TextGrab.
- Launch TextGrab — it appears as a magnifier icon in the menu bar
- Press ⌃⌥T (Control + Option + T) or click the menu bar icon
- Drag to select the region containing text
- Text is automatically copied to your clipboard
- Paste anywhere with ⌘V
macOS will ask for Screen Recording permission on first use. Go to System Settings > Privacy & Security > Screen Recording and enable TextGrab.
Click the menu bar icon > Ayarlar... to open the settings window. Click the shortcut field and press your desired key combination.
| Shortcut | Action |
|---|---|
⌃⌥T |
Capture text from screen (default, customizable) |
Escape |
Cancel selection |
⌘Q |
Quit |
Hotkey → Screen Overlay → Region Selection → ScreenCaptureKit → Vision OCR → Clipboard
- Global hotkey registered via Carbon API
- Transparent overlay window covers all screens
- User drags to select a region
- ScreenCaptureKit captures the selected area at native resolution
- Vision framework performs text recognition
- Recognized text is copied to the system clipboard
- Toast notification confirms the result
| Component | Technology |
|---|---|
| UI | SwiftUI (MenuBarExtra) |
| Screen Capture | ScreenCaptureKit |
| OCR | Apple Vision (VNRecognizeTextRequest) |
| Global Hotkey | Carbon (RegisterEventHotKey) |
| Preferences | UserDefaults |
| Build | Swift Package Manager |
TextGrab/
├── Package.swift
├── Sources/
│ ├── TextGrabApp.swift # App entry + menu bar
│ ├── CaptureCoordinator.swift # Orchestrates capture flow
│ ├── HotkeyManager.swift # Carbon global hotkey
│ ├── SelectionOverlay.swift # Region selection UI
│ ├── OCREngine.swift # Vision framework OCR
│ ├── PreferencesManager.swift # Shortcut preferences
│ ├── SettingsView.swift # Settings window
│ └── ToastWindow.swift # Toast notifications
└── video/ # Promo video (Remotion)
Requirements:
- macOS 14 (Sonoma) or later
- Xcode Command Line Tools (
xcode-select --install)
# Debug build
swift build
# Release build
swift build -c release
# Run directly
swift run TextGrabMIT License. See LICENSE for details.
Built with Swift and Vision framework.
Made by Abdullah Cadirci