Re: NotebookPath Probe.

*To*: mathgroup at smc.vnet.net*Subject*: [mg22847] Re: NotebookPath Probe.*From*: paulh at wolfram.com (P.J. Hinton)*Date*: Sat, 1 Apr 2000 02:51:08 -0500 (EST)*Organization*: "Wolfram Research, Inc."*References*: <8c1ifc$q7h@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

In article <8c1ifc$q7h at smc.vnet.net>, James Fuite and Tania Nordli <jfuite at ualberta.ca> writes: > The function Options[$FrontEnd, NotebookPath], or use of the > Option Inspector, indicates the current list of paths that Mathematica > searches when trying to open notebooks. It seems that, when using the > function NotebookOpen, the notebook to be opened must fall within the > last folder of at least one of the paths. The function > SetOptions[$FrontEnd,NotebookPath:->{appropriate search path or list of > search paths}] can be used to change the value of NotebookPath, erasing > the old value. This seems troublesome, since, if I give a notebook that > alters the value of NotebookPath to someone else, their $FrontEnd is > permenantly altered. > > My question is, from the Kernal, how can you add a new search > path to NotebookPath while maintaining the old search paths? What is the circumstance under which you are trying to perform a NotebookOpen[] operation? If you are working with a collection of notebooks which reside within a specific portion of the directory tree, then you may not need to monkey around with NotebookPath at all. Instead, store the path to the top level directory as a string and then compute the value of the absolute path at execution time by concatenating this top directory string with a relative path. NotebookOpen[] does accept absolute paths. -- P.J. Hinton Mathematica Programming Group paulh at wolfram.com Wolfram Research, Inc. Disclaimer: Opinions expressed herein are those of the author alone.