Skip to content

Instantly share code, notes, and snippets.

@ff6347
Forked from ClarkGoble/Get Finder Selection Paths
Created February 24, 2013 09:12
Show Gist options
  • Select an option

  • Save ff6347/5023198 to your computer and use it in GitHub Desktop.

Select an option

Save ff6347/5023198 to your computer and use it in GitHub Desktop.
tell application "Finder" to set theSel to selection as alias list
set pathList to {}
repeat with anItem in theSel
set the end of pathList to quoted form of (POSIX path of (anItem as alias))
end repeat
set savedDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
set myoutput to pathList as string
set AppleScript's text item delimiters to savedDelimiters
return myoutput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment