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


Click here to return to the '10.4: Use Automator to open chosen folder in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Automator to open chosen folder in Terminal
Authored by: daiyu on Oct 01, '05 04:22:33PM

Is there any way to do the opposite operation, that is, to open a Finder window of the directory you are currently in in the Terminal?


---
BJS



[ Reply to This | # ]
10.4: Use Automator to open chosen folder in Terminal
Authored by: sporkstorms on Oct 07, '05 12:03:24PM

There's a wonderful command-line program called "open." It is, for the most part, like double clicking something in Finder.

If you do "open Foo.txt" it will open that file in TextEdit (or whichever program it would open in from finder).

It also works with directories. You can do "open /some/path" and it will open a Finder window to that directory.

So.... you just need to type "open ." (a command i use allll the time). :) The '.' (dot) just means "the directory you're in" in various shells, in case you're not aware.



[ Reply to This | # ]
10.4: Use Automator to open chosen folder in Terminal
Authored by: osxpounder on Jul 09, '06 08:59:23AM
Yes. In Terminal, type:

open .

... and a Finder window will open for the directory you are in, in Terminal, when you type that.

The "open" command tells the Mac to open something using whatever the GUI normally uses when double-click a file [I think].

The period, ".", has a special meaning in path names: it means "this directory".

Thus, "open ." translates in English to "open this directory using whatever you'd normally use to do that", which on most Macs means open a Finder window.

I wonder what happens if you use PathFinder?

[ Reply to This | # ]