Copy Finder’s selection paths to the clipboard
Posted on February 19th, 2010 by AVD
After surfing the Google I’ve stopped at simple AppleScript summarized from several solutions.
To use it follow original instruction found at Macworld » Mac » Software » Utilities » Copy paths from Finder selections.
Open Script Editor and enter these lines:
tell application “Finder”
set currentSelection to the selection as alias list
set pathStringList to the “”
repeat with selectedAlias in currentSelection
set pathStringList to the pathStringList & POSIX path of selectedAlias & “\n”
set the clipboard to pathStringList
Select “File -> Save” to bring up the Save dialog. Give your program a name (“Get Path”, for example), save it somewhere safe (your user’s Documents folder), and set the “File Format” pop-up to “Application”, then click Save. Now navigate to the spot where you saved your program, and drag it to the Dock or to a Finder’s sidebar or toolbar area. When you need the path to an item, first select that item, then click on your program’s Dock, sidebar, or toolbar icon. You’ll briefly see your program load into the dock, then quit. When it quits, switch to your target application and press Command-V to paste the path.