Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Copy filename
set file_list to ""
tell application "Finder"
set selected_items to selection
on error
error "No selected Finder items"
end try
repeat with selected_item in selected_items
set file_list to file_list & POSIX path of (selected_item as alias) & return
end repeat
end tell
set the clipboard to text 1 thru -2 of file_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.