[Pythonmac-SIG] Open Terminal Here

Neil Mayhew niel_mayhew@mac.com
Tue, 22 Oct 2002 14:57:14 -0600


> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3118143434_506724
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit

Chris,

You can also drag icons from the Finder into Terminal windows and they will
be pasted as pathnames. IOW, in an open Terminal window, type 'cd ' and drag
the folder icon to complete the command line. Or, drag the folder and then
insert 'cd ' at the start of the line before pressing return.

There is also a converse: the 'open' command opens a pathname as if it had
been double-clicked in the Finder. This applies to documents, applications
and folders. I often type 'open .' when I am working in Terminal and want to
get a Finder view of the current directory.

This can also be used to open up 'hidden' directories in the Finder, eg
'open /usr' or open '/etc'. Once you have the top-level directory open, you
can easily drill down to others if needed.

I find this integration between Terminal and Finder very useful. I have
Terminal set to auto-open, hidden, on login, so that I always have a window
available when I need it.

--Neil

--
Neil Mayhew
Calgary, Alberta, Canada
niel_mayhew@mac.com

(Email address deliberately misspelled to foil spammers)


--B_3118143434_506724
Content-type: text/html; charset="US-ASCII"
Content-transfer-encoding: quoted-printable

<HTML>
<HEAD>
<TITLE>Re: [Pythonmac-SIG] Open Terminal Here</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Arial">Chris,<BR>
<BR>
You can also drag icons from the Finder into Terminal windows and they will=
 be pasted as pathnames. IOW, in an open Terminal window, type 'cd ' and dra=
g the folder icon to complete the command line. Or, drag the folder and then=
 insert 'cd ' at the start of the line before pressing return.<BR>
<BR>
There is also a converse: the 'open' command opens a pathname as if it had =
been double-clicked in the Finder. This applies to documents, applications a=
nd folders. I often type 'open .' when I am working in Terminal and want to =
get a Finder view of the current directory.<BR>
<BR>
This can also be used to open up 'hidden' directories in the Finder, eg 'op=
en /usr' or open '/etc'. Once you have the top-level directory open, you can=
 easily drill down to others if needed.<BR>
<BR>
I find this integration between Terminal and Finder very useful. I have Ter=
minal set to auto-open, hidden, on login, so that I always have a window ava=
ilable when I need it.<BR>
<BR>
--Neil<BR>
<BR>
--<BR>
Neil Mayhew<BR>
Calgary, Alberta, Canada<BR>
niel_mayhew@mac.com<BR>
<BR>
(Email address deliberately misspelled to foil spammers)<BR>
</FONT>
</BODY>
</HTML>


--B_3118143434_506724--