symdesign
5/16/2016 - 10:00 AM

Automate copy file path

If you find yourself frequently needing to copy and paste file and folder paths, creating an Automator Service will make your life easier because the service then becomes accessible from the OS X Right-Click contextual menu, accessible from anywhere in the Finder. Here are some useful context menu entries that can be added through Automator.app

Launch Automator and create a new “Service” and set Service recieves selected files or folders in Finder.app

Copy Path

Use the search function to look for “Copy to Clipboard” and drag that into the rightside panel of the Service. Set ‘Service recieves selected’ to “files or folders” and ‘in’ to “Finder” as shown in the screen shot below

Open with Atom

In the library of actions on the left sidebar, you will find one called Run Shell Script : add it to the workflow. Set the service to receive selected files or folders. Shell: /bin/zsh Pass input: as arguments Then enter /Applications/Atom.app/Contents/MacOS/Atom -n $@ in the text area.