Dinosaurs Eat Everybody :: Open Coda From Terminal
Dinosaurs Eat Everybody - home of Dave Schwantes
Open Coda From Terminal

Do you do any coding on a Mac? Do you use Coda? If not, you should really check it out, it's a beautiful piece of coded editing software! Now, do you want to open Coda from Terminal? Sure we all do!

Recently I've been spending a lot more time in command line (Terminal if you want to use the OSX lingo) and since I've moved to doing all of my Python coding in Python I wanted a good way for the two to play together nicely. Some brief Googling brought me to this: Command-line Coda, a short Perl script that lets you use "coda" as a Terminal command to open files in Coda.

Simply download the file and copy it into one of your $PATH directories such as /usr/bin and change the permissions to execute ( type this into the command line in the directory you just copied the file: "chmod 755 coda" ). Now you can type this:



... and it will open up your file (in this case "dullroar.py") in Coda! Simple, but useful if you spend a lot of time in Terminal, but still want to edit your code in an attractive environment.