Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: Command to get a notebook's directory?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23641] Re: [mg22927] Command to get a notebook's directory?
  • From: Martin Stockhammer <martin.stockhammer at visualanalysis.com>
  • Date: Sun, 28 May 2000 23:08:55 -0400 (EDT)
  • Organization: Visual Analysis GmbH
  • References: <8ck0rd$g59@smc.vnet.net> <8cnvj9$5e0@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Jordan,

Jordan Rosenthal schrieb:
> 
> Adalbert/John,
> 
> Thanks to both of you for your reply.   Between the time I wrote my message
> and the time you replied I also (after quite a bit of time!) came up with
> the following
> 
>   ToFileName[ NotebookDirectory /. Options[$FrontEnd,
> NotebookDirectory][[1]] ]
> 
> Since you both used the NotebookInformation[] function, I am wondering if
> there is any reason my approach may be buggy.  Is there any hidden problems
> in doing it my way?
> 

This gives the directory where new notebooks are saved and that you will
see first, in 
the File-Browser, if you want to open a new notebook.

If you have several notebooks open, where each lies in a different
directory, your solution
gives the directory of the last opened or saved notebook and not the
notebook which 
is currently used for evaluation.


-- 
---

Martin Stockhammer
Visual Analysis GmbH
http://www.visualanalysis.com
email: martin.stockhammer at visualanalysis.com


  • Prev by Date: programming DeleteRepetitions
  • Next by Date: Re: line numbering in packages
  • Previous by thread: Re: programming DeleteRepetitions
  • Next by thread: how embed fonts with emmathfnt?