software development for the
existentially challenged
Older | Newer Older | Newer
Get a file's path onto the Clipboard as a Service using Applescript and Automator
comment share
Here's a super simple way to copy a file's name from the Finder to the clipboard as a Unix style path.

Create an Automator service that runs a short Applescript like so:

The interesting part is using the function POSIX PATH:

on run {input, parameters}
set posix_path to POSIX path of input
return posix_path
end run

A bunch of great posts helped out, but particularly this great one:


Post a Comment

What is this site?!

t (a professional software developer for a big company) writes about software development and stuff. Unix, Java, Groovy, OS X, and lots of open source libraries and tools.