Thanks to this post on the Keyboard Maestro forum:
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 |
Update:
Right click on any Finder item, then hold Option. “Copy” becomes “Copy as Pathname”!!— @masnick
(Thanks @anatomyofashane - you are a genius.)