FinderAction
Open-source Finder right-click actions for macOS.
Architecture: the non-sandbox Host is a small AppKit-only resident executor; the SwiftUI Settings helper starts on demand and exits when its window closes; a thin FinderSync extension only renders a menu snapshot and forwards clicks. No Runner process, security-scoped bookmark pipeline, telemetry, or in-app purchase.
Finder right-click script launcher — edit scripts as files, git them, share them.
Requirements
- macOS 15+
- Xcode 16+ (to build)
- XcodeGen (
brew install xcodegen) - Apple Developer Program membership (release only)
Development
./Scripts/dev.sh # generate the project and build Debug
./Scripts/test.sh # run the Swift test suite
dev.sh generates FinderActions.xcodeproj from project.yml; treat the YAML file as the source of truth. You can then open the project in Xcode and run the FinderAction scheme.
The build also verifies that the Host binary does not link SwiftUI.
Release outside the Mac App Store
Releases use Developer ID signing, Hardened Runtime, Apple notarization, ticket stapling, and Gatekeeper validation.
./Scripts/setup-signing.sh # once per development Mac
./Scripts/release.sh # tested, signed, notarized release ZIP
Release artifacts are written to build/releases/. See docs/releasing.md for credential setup, pipeline details, and troubleshooting.
Copy the built FinderAction.app to /Applications for everyday use (helps FinderSync registration).
On first launch, use the setup guide to add /Applications/FinderAction.app in
System Settings → Privacy & Security → Full Disk Access. This lets actions
work with protected locations without repeatedly selecting the same folders.
FinderAction can open the correct settings page and reveal its app bundle, but
macOS requires you to add and enable the app yourself.
Headless check
# Same load path as the GUI — prints seeded action ids
open -W -a /path/to/FinderAction.app --args --dump-actions
or after build:
./build/DerivedData/Debug/Build/Products/Debug/FinderAction.app/Contents/MacOS/FinderAction --dump-actions
Core tests & shell harness
swift test
swift run ShellExecHarness /tmp/shell-exec.log
Enable the Finder extension
- Launch FinderAction (menu bar hammer icon).
- Open System Settings → Privacy & Security → Extensions → Added Extensions (wording varies by macOS version) and enable FinderAction.
- Right-click a file or folder in Finder.
If the menu never appears (Sequoia+)
# Register the appex after installing the app
pluginkit -a "/Applications/FinderAction.app/Contents/PlugIns/FAFinderSync.appex"
pluginkit -e use -i com.finderactions.host.FinderSync
pluginkit -m -i com.finderactions.host.FinderSync
Restart Finder
killall Finder
The Host Extension settings tab also links to System Settings and can restart Finder.
Default actions and applications
Enabled by default (keep the menu small):
| Action | Type |
|--------|------|
| Open in Terminal | selected terminal |
| Copy Path | shell |
| Copy Filename | shell |
| Open in Visual Studio Code | selected editor |
| Cut / Move Here / Clear Cut | built-in |
Choose the terminal and one or more editors in Settings → Applications.
Finder always shows one generic Open in Terminal command; each selected editor
gets its own command. The built-in catalog covers common terminals and editors,
and Choose Application… supports any additional macOS .app.
Cut and Move Here
Right-click selected items and choose Cut. The items are queued in the Host and their file URLs are also written to the system pasteboard, so Finder's native Option-Command-V keeps working. Then right-click a folder, or the blank space of a folder window, to get Move Here (N) and Clear Cut.
Moving never overwrites: an item whose name already exists at the destination is skipped, stays in the cut queue, and is named in the logs. Items that moved, were already in place, or no longer exist leave the queue. If you already moved the items with Finder's Option-Command-V, Move Here simply clears the queue without reporting an error. A folder cannot be moved into itself. Turn the feature off in Settings → General → Right-Click Cut & Move Here.
Before moving, FinderAction asks "Move N items to …?". Requests from Finder are not authenticated yet (see ADR 0001), so the prompt keeps other apps from moving files through FinderAction without you noticing. Turn it off in Settings → General → Confirm Before Move Here.
Write a shell action
Scripts live in:
~/Library/Application Support/FinderActions/Actions/
Manifest:
~/Library/Application Support/FinderActions/manifest.json
Example compress.zsh:
#!/bin/zsh
set -euo pipefail
"$@" selected paths (correct with spaces / Unicode / quotes)
$FA_CWD Finder container directory
$FA_PATHS newline-separated paths
$FA_PATH_COUNT count
$FA_CONTAINER same as container
$FA_ACTION_ID action id
for f in "$@"; do
# your tool here
echo "got: $f"
done
Add a manifest entry:
{
"id": "compress",
"name": "Compress",
"type": "shell",
"enabled": true,
"sortIndex": 50,
"icon": { "sfSymbol": "archivebox" },
"showWhen": "always",
"shell": {
"interpreter": "/bin/zsh",
"scriptFile": "compress.zsh"
}
}
Save → Host republishes the menu snapshot. Use Open Scripts Folder from Settings or the menu bar menu.
Exit code 0 = success (first stdout line can appear in the notification). Non-zero = failure (the end of stderr is kept in Settings → Logs).
Build your own Finder workflow
- Start an action from a per-file, current-directory, application or blank template.
- Set file extensions and file/folder rules to keep the right-click menu relevant.
- Choose or drop real test inputs, inspect the execution preview, and explicitly
- Follow setup through a successful Copy Path action in Finder. Extension
- See active Finder tasks in the menu bar and recent results with names, file
- Export a single action and its scripts as a local
.faactionpackage. Import
See the scripting guide for semantics and package limits, and workflow verification for test scenarios. The Settings window stays open while a Live Test is running.
Architecture
Settings helper (SwiftUI, exits on close)
│ saves config + reload notification
▼
Host (AppKit, not sandboxed) FinderSync (sandboxed, thin)
config, scripts, logs ←→ render snapshot menu only
execute app/shell/term forward actionId + paths
publish menu snapshot no Process / no script run
IPC uses DistributedNotificationCenter (JSON v1 payloads). The extension keeps its own cached copy of the last snapshot.
See docs/architecture.md, docs/ipc.md, docs/scripting.md, docs/troubleshooting.md, and docs/releasing.md (App release & Web deployment).
Privacy
- No telemetry, no account, no network client in Host
- Extension does not read file contents or upload paths
- Execution logs are local only (Settings → Logs → Clear)
License
MIT — see LICENSE.