MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Finding the Path to the Active Notebook


  • To: mathgroup@smc.vnet.net
  • Subject: [mg12610] Re: Finding the Path to the Active Notebook
  • From: gwinn@ma.ultranet.com (Joe Gwinn)
  • Date: Mon, 25 May 1998 14:25:20 -0400
  • Organization: Gwinn Instruments
  • References: <6jol58$k6h@smc.vnet.net> <6k7ek7$1nt@smc.vnet.net>

I don't know that use of SelectedNotebook[] solves the problem.  If I
understand the original problem, it's a problem I also have, access to
a bunch of data-filled notebooks kept in the same directory as the
data-analysis notebook that uses that data, without having to
explicitly specify the full path to those data-filled notebooks, so if
the directory is moved or copied, those explicitly specified paths
don't have to be explicitly re-specified.

Joe Gwinn


In article <6k7ek7$1nt@smc.vnet.net>, Paul Abbott
<paul@physics.uwa.edu.au> wrote:

> Adalbert Hanszen wrote:
> 
> > Does anybody know a way, how to programmatically find out, from which
> > directory the active notebook was loaded?
> > 
> > I am looking for something like MyOwnPath[] returning me the full path
> > to the active notebook (or None, if the notebook has just been typed in
> > without any Notebook-loading).
> 
> Do you really need this? Doesn't SelectedNotebook[] provide the
> functionality you need for working with a particular Notebook?
> 
> In[1]:= SelectedNotebook[]
> Out[1]=-NotebookObject-
> 
> Note that, if you unformat this output, you can find out more
> information about this NotebookObject:
> 
> Out[1]=
> Cell[BoxData[
>     FormBox[
>       InterpretationBox[
>         RowBox[{
>         "\[SkeletonIndicator]", "NotebookObject", 
>           "\[SkeletonIndicator]"}],
>         NotebookObject[ 
>           FrontEndObject[ 
>             LinkObject[ "Mathematica 3.0", 1, 1]], 77],
>         Editable->False], TraditionalForm]], "Output",
>   CellLabel->"Out[1]="]
> 
> Cheers,
>         Paul 
> 
> ____________________________________________________________________ 
> Paul Abbott                                   Phone: +61-8-9380-2734
> Department of Physics                           Fax: +61-8-9380-1014
> The University of Western Australia            Nedlands WA  6907       
> mailto:paul@physics.uwa.edu.au  AUSTRALIA                            
> http://www.pd.uwa.edu.au/~paul
> 
>             God IS a weakly left-handed dice player
> ____________________________________________________________________



  • Prev by Date: Re: Return inside Do, For and While
  • Next by Date: How do you suppress output from a third party package?
  • Prev by thread: Re: Finding the Path to the Active Notebook
  • Next by thread: Re: Re: Finding the Path to the Active Notebook