-- returns POSIX path of files selected in Finder
-- with multiple files selected, returns results as comma separated list
tell application "Finder"
set finder_sel to the selection as alias list
end tell
set file_list to {}
set mylist to ""
repeat with x in finder_sel
set file_list to file_list & ((x) as string)
end repeat
repeat with x in file_list
set mylist to mylist & quote & POSIX path of x & quote & ","
end repeat
set mylist to characters 1 through -2 of mylist as string
set the clipboard to mylist
——Applescript————
-- returns HFS path of files selected in Finder
-- with multiple files selected, returns results as comma separated list
tell application "Finder"
set finder_sel to the selection as alias list
end tell
set file_list to {}
set mylist to ""
repeat with x in finder_sel
set file_list to file_list & ((x) as string)
end repeat
repeat with x in file_list
set mylist to mylist & quote & x & quote & ","
end repeat
set mylist to characters 1 through -2 of mylist as string
set the clipboard to mylist