Re: Default location for Exported files?
- To: mathgroup at smc.vnet.net
- Subject: [mg89260] Re: Default location for Exported files?
- From: David Reiss <dbreiss at gmail.com>
- Date: Mon, 2 Jun 2008 04:30:33 -0400 (EDT)
- References: <firstname.lastname@example.org> <email@example.com>
Unfortunately this approach will only work as long as no other application that you are using within Mathematica does any directory manipulation commands. So I'd suggest that you create a small palette with a button that resets your directory using the approach in this suggestion. Then, whenever you need to you can reset your working directory to your chosen location. Generally though you should only ever consider the result of the execution of a SetDirectory command as temporary. Other code will often make changes to the current directory... --David On Jun 1, 4:35 pm, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de> wrote: > Hi, > > It is the directory that Directory returns and > > SetDirectory["the directory you like"] > > will set it to a new location. Put a SetDirectory in > your init.m and you are done. > > Regards > Jens > > AES wrote: > > Is there a *global* default I can set to make all files Exported from > > any Mathematic notebook from now on (permanently!) always (in the > > absence of other specific command) go to a default location of my > > choice, on my HD? > > > Possible choices for this default: > > > 1) Always to the desktop? > > > 2) Always to the folder **which contains the notebook which does the > > Exporting**? > > > 3) Always to a designated folder on my desktop? (I happen to have = such > > a folder, which I call "Downloads"; essentially every other application > > on my laptop -- browser, mail client, newsreader, various editing apps, > > and essentially every other app -- is set so that any web file download,= > > any FTP, any Save As, Print to PDF, or similar command will point to > > this folder; never have to worry about where else to look.)