Have you ever wanted a second terminal window located in the same directory that you're currently working in? Perhaps one holds a list of files in a grep search results; the other, an editing window for the particular file you're editing. The typical way of doing this is to open a new terminal window (Command-N), then issue the cd command with the path to the location you wish to jump to.
macosxhints.com reader Impatient1 sent in a script to automate this process, but I had some trouble making it work while testing the hint ... so I posted it to this thread on the forum site, asking for assistance. After a few back and forths, reader Paul McCann took what was a 20 line program and turned it into four simple lines of code:
#!/bin/sh osascript <<END tell app "Terminal" to do script "cd \"`pwd`\"" ENDJust create this script somewhere on your path (I called it nt, for new term), set it to executable with chmod 755 nt, type rehash to add it to the list of known programs, and you're done.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20030508060348383