How to copy a file or folder path from the Finder right-click menu on Mac

Select one or more items in Finder, then choose iRightMenu Pro’s Copy Path from the right-click menu. This copies their full paths to the clipboard. You can also right-click an empty area to copy the path of the folder you have open.

Copy one or more paths

  1. Select a file or folder in Finder. To select several items, hold ⌘ while clicking each one.
  2. Right-click the selection and choose Copy Path. If the actions are grouped under iRightMenu Pro, open that submenu first.
  3. Press ⌘V to paste into a text editor, chat, or Terminal. To copy the current folder, click an empty area to clear the selection, then right-click there.

For example, copying a workbook named Project Plan.xlsx might put this on your clipboard:

'/Users/alex/Documents/Project Files/Project Plan.xlsx'

The single quotes let Terminal treat a path with spaces as one argument. When you select several items, each path gets its own quotes and the paths are separated by spaces. If you are sharing a single ordinary path in an email, you can remove the outer quotes for readability.

Add Copy Path if it is missing

Open the Context Menu tab in iRightMenu Pro and search the template library on the left for Copy Path. Drag it from Built-in into the middle pane. If the item is already there, select it and make sure it is enabled in Basic. To show it when nothing is selected, set Display → Show When to Always.

The Show When control at the top of the Display tab, illustrated with a different menu item

Copy Path or Copy Filename?

Copy Path includes the location, such as /Users/alex/Documents/Project Plan.xlsx. Copy Filename gives you Project Plan.xlsx, with one name per line for multiple selections. For occasional folder paths, Finder also has a built-in option. Choose View → Show Path Bar, then right-click a folder in the path bar and choose Copy as Pathname. See Apple’s Finder path bar guide.

Download iRightMenu Pro · Troubleshoot a missing Finder menu

Developer Documentation
User Guide
Getting Started Create Word and Excel Files Copy File Paths in Finder Open Terminal from Finder Menu Editor Guide Plugin Manager Settings Script Menus FAQ
Script Development
Development Guide
Plugin Development
Quick Start Development Guide Example Plugins
API Reference
Overview API Query Plugin Info Logging Finder Context Plugin Settings Internationalization
UI & Interaction
Dialog Progress Notification Chooser WebView Status Bar Dock
Files & Paths
File Operations Path Utilities Finder Actions Trash Extended Attributes Metadata File Watcher
Data Formats
JSON Plist CSV XML PDF Image
Text & Encoding
String Regex Date & Time Color Crypto
System
Shell Commands Process Application System Info AppleScript Shortcuts
System Info
Network Power/Battery Screen/Appearance Audio Bluetooth Location
Network
HTTP WebSocket URL
Input & Clipboard
Keyboard Mouse Hotkey Clipboard Window
Storage
SQLite Keychain UserDefaults
Media
OCR QR Code
Utilities
Archive UTI Share Timer Wake Lock Thread