Re: Default location for Exported files?
- To: mathgroup at smc.vnet.net
- Subject: [mg89285] Re: Default location for Exported files?
- From: David Reiss <dbreiss at gmail.com>
- Date: Tue, 3 Jun 2008 07:31:06 -0400 (EDT)
- References: <g1tjlt$kiv$1@smc.vnet.net> <g1v16t$245$1@smc.vnet.net>
On Jun 3, 4:00 am, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de> wrote: > Hi, > > "other application" ??? what other application do one need > when one have Mathematica ??? Add-ons to Mathematica (!) such as (dare I say) "A WorkLife FrameWork" : - ) > > The best way is to add the directory to the file name. > > Puzzled regards > Jens > > David Reiss wrote: > > 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 th= e > >>> Exporting**? > >>> 3) Always to a designated folder on my desktop? (I happen to hav= e = > > such > >>> a folder, which I call "Downloads"; essentially every other applicatio= n > >>> on my laptop -- browser, mail client, newsreader, various editing apps= , > >>> and essentially every other app -- is set so that any web file downloa= d,= > > >>> any FTP, any Save As, Print to PDF, or similar command will point t= o > >>> this folder; never have to worry about where else to look.)