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:

copytoclip_small

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

And yet another santa list item …

link

3 degrees…

I posted this on my work blog (not public), thought it was worth reproducing here:

Upon my random perusing of wikipedia.org, I found an interesting path of correlation. It was when looking at the entry for DOOM (video game) that I found this path: DOOM was built on the DOOMengine which was based on the NeXT platform, the first port of NeXT to MSDOS was for DOOM, ironically, the NeXT engine was developed by the company NeXT Software Co., the company that Steve Jobs formed after leaving Apple back in 1985. Furthermore, NeXT evolved into OPENSTEP, and elements of OPENSTEP made their way into OSX. So in a way, DOOM and OSX are long lost cousins.

The Apple portion summed up, good quick read