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: nobody on May 10, '03 12:08:38PM

This one fail not when directories contain strange chars:
#!/bin/sh
echo $PWD > ~/.tmpdirstorepath
osascript <<END
tell application "Terminal" to do script "cd \"\`cat ~/.tmpdirstorepath\`\""
END



[ Reply to This | # ]
Open new Terminal window at current Terminal directory
Authored by: lpp on May 10, '03 05:25:15PM

Yes, that's the method that "Open Terminal Here" employs. I had hoped to avoid doing someting similar, but may not have a choice with Terminal Here Plugin.

Regards,

Lynn



[ Reply to This | # ]
Open new Terminal window at current Terminal directory
Authored by: nobody on May 10, '03 06:18:19PM

I admit, this is indeed based your approach. I did not understand your perl script, but saw the .OpenTerminalHere file I began to try out the same way.
first I tried to:
\"`cat ~/.tmpdirstorepath`\""
which did not work.
then I also escaped the `:
\"\`cat ~/.tmpdirstorepath\`\""
This also works in the terminal, using for example:
cd \"\`$PWD\`\""
But:
tell application "Terminal" to do script "cd \"\`echo $PWD\`\""
does not work for pathnames which have öäü ....
Looks like a bug of Terminal?



[ Reply to This | # ]