Skip to content

Instantly share code, notes, and snippets.

@a-v-ebrahimi
Created August 5, 2015 11:42
Show Gist options
  • Save a-v-ebrahimi/ddb7c626c941ca035e02 to your computer and use it in GitHub Desktop.
Save a-v-ebrahimi/ddb7c626c941ca035e02 to your computer and use it in GitHub Desktop.
Copy path to clipboard (Automator)
on run {input, parameters} try
tell application "Finder" to set the clipboard to POSIX path of (target of window 1 as alias)
on error
beep
end try return input end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment