mirror of
https://github.com/arikchakma/CopyAbsolutePath.git
synced 2026-04-27 06:55:52 +03:00
A macOS Finder service to copy absolute file paths to clipboard.
| Copy Absolute Path.workflow/Contents | ||
| .gitignore | ||
| install.sh | ||
| license | ||
| readme.md | ||
| uninstall.sh | ||
📋 Copy Absolute Path
A macOS Finder service that copies the absolute path of selected files or folders to your clipboard.
What Does It Do?
Adds a Copy Absolute Path option to Finder's right-click Services menu. Select any file or folder, trigger the service, and the full path is copied to your clipboard.
- Works with files and folders
- Supports multiple selection (paths separated by newlines)
- Default keyboard shortcut: ⌘⌃C (Cmd+Ctrl+C)
- Helpful for adding workspace folders in Claude Code.
Installation
curl -fsSL https://raw.githubusercontent.com/arikchakma/CopyAbsolutePath/main/install.sh | bash
Or clone and install manually:
git clone https://github.com/arikchakma/CopyAbsolutePath.git
cd CopyAbsolutePath && ./install.sh
Note
You may need to restart Finder (
killall Finder) or log out/in for the service to appear.
Usage
- Select any file or folder in Finder
- Right-click → Services → Copy Absolute Path
- Or use ⌘⌃C (Cmd+Ctrl+C)
Keyboard Shortcut
The default shortcut is ⌘⌃C (Cmd+Ctrl+C). To change it:
- System Settings → Keyboard → Keyboard Shortcuts
- Select "Services" in the sidebar
- Find "Copy Absolute Path" under Files and Folders
- Double-click the shortcut and press your preferred keys
Uninstallation
curl -fsSL https://raw.githubusercontent.com/arikchakma/CopyAbsolutePath/main/uninstall.sh | bash
Or if you cloned the repo:
./uninstall.sh
Troubleshooting
Service doesn't appear in menu:
- Restart Finder:
killall Finder - Or log out and back in
Shortcut doesn't work:
- Check System Settings → Keyboard → Keyboard Shortcuts → Services
- Ensure the service is enabled (checkbox is checked)
Contributing
Feel free to submit pull requests, create issues, or spread the word.
License
MIT © Arik Chakma