Skip to content

Instantly share code, notes, and snippets.

@xVir
Last active August 16, 2016 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xVir/341a8e76c3fc79c9dbadc56d41ece0c3 to your computer and use it in GitHub Desktop.
Save xVir/341a8e76c3fc79c9dbadc56d41ece0c3 to your computer and use it in GitHub Desktop.
updated_copy_path

It is the updated variant of my copy path script for Automator

on run {input, parameters}
	set res to ""
	if not input = "" then
		repeat with theFile in input
			if not res = "" then
				set res to res & return
			end if
			set part to POSIX path of theFile
			set res to res & part
		end repeat
	end if
	if not res = "" then
		set the clipboard to res
	end if
	return res
end run

This script can be easily used as a service

img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment