I got tired of copying a column of stuff from Excel, opening BBEdit, doing a find and replace to convert a bunch of lines into one block of comma-delimited text, selecting it all, copying again, and then finally pasting. I felt like I was that chump using an old fashioned blanket on the snuggie commercial.
So, I wrote this AppleScript.
clipboard newlines to commas and paste
Usage:
- Copy a column of stuff (from Excel, Numbers, anything really)
- Go to where you want to paste it as comma-delimited
- Invoke the script!
On my system, I run it with a keystroke trigger defined in Quicksilver. But you could use LaunchBar…or activate it from the scripts menu. By the way, if you want a system-wide scripts menu, here is a page that describes a nice way of activating a bunch of menu extras in OS X.
There are probably more elegant ways of doing this, but it has been working for me. If you find anything funky with it, let me know.