In article <4ne6d2$car at dragonfly.wolfram.com>,
a_kowald at chemie.fu-berlin.de (Axel Kowald) wrote:
> Hi
> I'm using Mathematica 2.2 on a mac running 7.5.1 and I have the
following problem:
> I'm starting Mma by double clicking on a notebook. How can I now find out the
> directory where that notebook lies ?
> HomeDirectory gives only the path to the Mathematica program itself, not
to the
> notebook.
>
>
> Many thanks
>
> Axel Kowald
You can use the "Paste File Pathname..." command which is on the
Prepare Input submenu of the Action Menu.
When you select this a file browser opens allowing you to select
the file in question. On selecting a file its full pathname is
posted in at the insertion point in the current notebook. For your
purposes you might want to delete the filename itself.
I hope this helps.
--Ian
-----------------------------------------------------------
Ian Collier
Wolfram Research, Inc.
-----------------------------------------------------------
tel:(217)-398-0700 fax:(217)-398-0747 ianc at wolfram.com
Wolfram Research Home Page: http://www.wolfram.com/
-----------------------------------------------------------
==== [MESSAGE SEPARATOR] ====