Skip to content

Instantly share code, notes, and snippets.

tell application "Finder"
set sel to the selection
if (count of sel) is greater than 1 then
set theList to ""
repeat with e in sel
set theList to theList & POSIX path of (e as text) & return
end repeat
set the clipboard to theList
else if (count of sel) is equal to 1 then
set the clipboard to POSIX path of (sel as text)