Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save masnick/5695eda73bb1e09d7d36c46a32b744e3 to your computer and use it in GitHub Desktop.

Select an option

Save masnick/5695eda73bb1e09d7d36c46a32b744e3 to your computer and use it in GitHub Desktop.
tell application "Finder"
set finderSelList to selection as alias list
end tell
if finderSelList ≠ {} then
repeat with i in finderSelList
set contents of i to POSIX path of (contents of i)
end repeat
set AppleScript's text item delimiters to linefeed
return finderSelList as text
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment