Re: Mathematica handling of on where it saves current open notebook (again)
- To: mathgroup at smc.vnet.net
- Subject: [mg118862] Re: Mathematica handling of on where it saves current open notebook (again)
- From: Helen Read <readhpr at gmail.com>
- Date: Fri, 13 May 2011 06:28:36 -0400 (EDT)
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. I don't think I have seen this happen with Save, but it happens all the time with SaveAs, and is a huge nuisance. Say I have C:\verylongpath\foo.nb and I'd like to save a copy with a new name. I go to SaveAs, rename the file foo2.nb, and it ends up in some other folder (somewhere else that I recently saved or opened something) instead of defaulting to the folder where foo.nb itself lives. The next time I go looking in C:\verylongpath\ for foo.nb and foo2.nb, only foo.nb is there, and I have to look all over the place for foo2.nb. If It can be avoided if I am paying more attention when I create foo2 with a SaveAs, but sometimes verylongpath is very long indeed and I might not even remember exactly where it is. I should not have to hunt around for the folder that the current file is already in! -- Helen Read University of Vermont