MathGroup Archive 2003

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

Search the Archive

Re: Re: Finding the Path to/Directory for the current EvaluationNotebook?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43516] Re: [mg43458] Re: [mg43423] Finding the Path to/Directory for the current EvaluationNotebook?
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Thu, 18 Sep 2003 05:40:17 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200309160836.EAA17106@smc.vnet.net> <200309171159.HAA29726@smc.vnet.net>
  • Reply-to: murray at math.umass.edu
  • Sender: owner-wri-mathgroup at wolfram.com

Neither this solution, nor a longer one previously posted by 
Yasvir-Tesiram, works for me (Mathematica 5.0, under Windows XP): In 
both cases the result returned is a directory of a currently-open 
palette, namely, a palette that has is always-on-top.

jmt wrote:
> Try this :
> SetDirectory[
>   DirectoryName[
>     ToFileName["FileName"/.NotebookInformation[SelectedNotebook[]]]]]
> 
> On Tuesday 16 September 2003 10:36, AES/newspost wrote:
>   > I want to put a SetDirectory (?) command at the beginning of a notebook
>   > that will reset the working directory to the folder containing the
>   > notebook itself.
>   >
>   > Objective is to have the results of any Exports, OpenWrites, etc,
>   > executed within that notebook automatically be directed to that same
>   > folder -- even if I close the notebook, rename it in the Finder (in Mac
>   > jargon), and re-open it.
>   >
>   > Or, if I Copy or Move the notebook to a different folder and later open
>   > it there, Exports or OpenWrites should go to that new, different folder.
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: RE: NSolve fails where Solve succeeds!
  • Next by Date: Re: NSolve fails where Solve succeeds!
  • Previous by thread: Re: Finding the Path to/Directory for the current EvaluationNotebook?
  • Next by thread: Re: Re: Re: Finding the Path to/Directory for the current EvaluationNotebook?