Re: Mathematica handling of on where it saves current open notebook (again)
- To: mathgroup at smc.vnet.net
- Subject: [mg118915] Re: Mathematica handling of on where it saves current open notebook (again)
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sun, 15 May 2011 07:06:27 -0400 (EDT)
You still haven't told us what you mean when you say you "insert an image" from folder B into your notebook from folder A. Is it just a graphic you opened with some other program? Or was it in another notebook in folder B that you opened. On 5/14/2011 3:04 AM, Nasser M. Abbasi wrote: > On 5/13/2011 3:30 AM, Murray Eisenberg wrote: >> I do believe this behavior is by design, and it's a design I like! >> >> Whatever file you're working on, the current value of Directory[] >> changes to that. To change it to something else, just use SetDirectory, >> which you can of course combine with EvaluationNotebook, etc. >> > > The notebook should always have ONE home folder, which is > the one it was opened from. Unless one explicitly changes > that using SaveAs. > > This is how all sane application work, from the day > computers were born :) > > So, I open a notebook from folder A. I then insert an image > into it by loading the image from folder B and then save the > notebook. > > Now a copy of the same notebook is written to folder B. > > Next, I insert an image which happened to be in folder C, > and save the notebook. Now another copy of the notebook is > saved in folder C. > > At the end of the day, I'll have 10 different copies of the > notebook in 10 different places all over the place, and I need > to go find which is the most current. > > And you really like this design? I do not understand. > > > --Nasser >> On 5/12/2011 4:33 AM, Nasser M. Abbasi wrote: >>> I mentioned this before few times in this forum. >>> >>> This is a very annoying problem, and I find it amazing that >>> Mathematica still can't handle such a basic thing even in >>> version 8.0.01 >>> >>> This is the problem: >>> >>> I open a notebook, say >>> >>> A/foo.nb >>> >>> Where A is the folder name >>> >>> Now I wanted to insert an image in the notebook, This image happened >>> to be in >>> >>> B/image.png >>> >>> Later on, I wanted save the current notebook. So, I click on the save >>> button. (CTRL-S) >>> >>> Where do you think the notebook should be saved? in folder A, right? >>> This is where it lives, right? >>> >>> Well, Mathematica does not think so. I saved the notebook as >>> >>> B/foo.nb >>> >>> It seems Mathematica changes the current folder to the last >>> folder an item is opened. >>> >>> This happens not only with images, but it also happens >>> if I open another notebook, in different folder, then go back >>> to an earlier opened notebook which was opened from a different >>> folder and then save that one. >>> >>> It will be saved in the wrong location, i.e. in the most recent >>> folder a notebook was opened from. >>> >>> I am sure someone will here tell me that this is by design >>> and this is how it is supposed to work. But I have never >>> used an application that worked this way before. Every application >>> I used saves the file in the same folder it was opened from, regardless, >>> unless open explicitly says SAVE AS and changes the folder. >>> >>> This is for me is a major bug. But I must be alone in thinking so. >>> >>> This is on windows 7. >>> >>> --Nasser >>> >> > > -- 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