How can I write a bash script in Mac OS X that opens a Terminal window in a specific directory? I'd assume something like:
open /Applications/Utilities/Terminal.app
But that does nothing (maybe it's loading the Terminal application which is already open instead of launching a new Terminal window). And of course it doesn't cd into a directory as I haven't specified that…
Best Answer
Here is a small script I knocked up :
If you save this and make it executable
and then run it
then it will open up a new terminal window and change to the directory in the argument.