Thank you, but I'm afraid that doesn't work. I opened a file, then opened the console and executed
... and the result was "/". But Command+O showed me a different directory.
I also tried it with a dired view, and it didn't work there, either.