Copy Path to Clipboard on a Mac
Through a few forum posts and searching, I found a way to add a Copy Path to Clipboard function to the right click dialog. Follow these steps to add a new automation:
1. Open Automator (Applications » Automator)
2. Create a blank ‘Custom’ workflow
3. In the Actions library, select Utilities » Run Applescript (double click it or drag it into the workspace)
4. Replace the text with the text below titled “Script” (put a tab indent in front of line 2 and 3)
5. File » Save As Plug-In
6. Name it something akin to ‘Copy Path to Clipboard’ and select Finder in the dropdown, click Save.
That’s it, you now have an item in the right-click dialog, under More » Automator » Copy Path to Clipboard
And that’s it, now after you have chosen that dialog item, you can paste from the clipboard into any application the path of a file or folder.
Cheers!
Script:
tell application “Finder”
set sel to the selection as text
set the clipboard to POSIX path of sel
end tell


No Comments, Comment or Ping
Reply to “Copy Path to Clipboard on a Mac”