Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Open new Terminal window at current Terminal directory' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Open new Terminal window at current Terminal directory
Authored by: Impatient1 on May 09, '03 05:05:25AM

I waited a couple days and just assumed it was rejected or something since I never saw it show up; I never received any email from 'griffman' either. Anyway, there is some missing context in some of this. In the original message, I mentioned that this was written for MacOS X 10.1 and that changes might be required for Jaguar. As such, the shell tested against was 'zsh', not 'bash'. The sed line must have gotten trampled by the forum software when I pasted it for the sixth time trying to get the embedded tag delimiters in the comment section to show up correctly - it was really late. The two corrections are:

<string>cd $DIR; history -c; clear</string>

shell script:

Using the dot-term file allowed me to set additional options (default window size, font, etc). The script also allowed creating new terminal windows with arbitrary paths, though the current directory was its mainstay:

$ newterm /usr/include
$ newterm $JAVA_HOME

And I think it's wonderful that much of its functionality was reduced to a one-line AppleScript; it sucks that the AS versions posted here don't work for me under 10.1 (NSInternalScriptError (8), whatever that means). I had used the 'Open Terminal Here' script but did the job from the Finder, not inside Terminal.

Apologies to the non-US crowd but it was originally written for me, not an international setup.

Still think it was worth a story credit...

[ Reply to This | # ]