Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10611
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!newspump.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | David Bailey <dave@removedbailey.co.uk> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Default path for opening files |
| Date | Sat, 23 Jun 2012 08:22:37 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <js3ucd$ut$1@smc.vnet.net> (permalink) |
| References | <jruonq$fgs$1@smc.vnet.net> |
| Lines | 39 |
| NNTP-Posting-Date | 23 Jun 2012 08:27:03 GMT |
| NNTP-Posting-Host | dfb71772.news.twtelecom.net |
| X-Trace | DXC=DTZRI6VKFen8?Tf=Vc;S=gC_A=>8kQj6mY;@_o827nGcOaQg`:__CXbEFiONJ7[GofTf>g`_oo7Ci |
| X-Complaints-To | abuse@twtelecom.net |
| X-Received-Bytes | 2643 |
| Xref | csiph.com comp.soft-sys.math.mathematica:10611 |
Show key headers only | View raw
On 21/06/2012 10:15, nanobio9 wrote: > Dear Mathematicans, > > Whenever I tried to open a file from my Mathematica directory (with > rather deep structure), I have to start with "~/Documents/" (I am > using Mac). I searched the help and I found that this directory is > coded in the variable "$UserDocumentsDirectory". OK. So I tried to set > this variable to the root of my Mathematica directory, but I found it > protected. Then I setup my local "init.m" file. I unprotect it, set > it, and protect it, in the init.m file. (This is another story though. > I searched the web for half a day and I do not see any example or > instruction, official or by other users, on how people can compose > their own init.m file.) However, nothing is changed. > > When my data files grow in number, I decided that I should use the > "FileNameSetter" interface in my NB to pick the file on the fly. That > way I do not have to modify the code ( filename=xxxx ...., blablabla ) > for each datafile. However, I found the same problem. In the > "FileNameSetter" function, there is not an option to set the default > starting path. (Or I am just too stupid to use electronic > documentation so that I do not find the solution?) Everything starts > with "~/Documents", although since the second time the directory tree > will be expanded like what I saw the previous time (this is the case > in Mac. I did not try under Windows or Linux). > > Is there any smarter way to do this? Look forward to your helpful > comments. > > KKL > I use Windows and Linux, and I find it far more convenient to use my own directories: c:\whatever, or ~/whatever . This gives one far more control, and you can divide files up into sub directories entirely as you wish. David Bailey http://www.dbaileyconsultancy.co.uk
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Default path for opening files nanobio9 <kuokan.liang@gmail.com> - 2012-06-21 09:15 +0000
Re: Default path for opening files Helen Read <readhpr@gmail.com> - 2012-06-22 07:02 +0000
Re: Default path for opening files nanobio9 <kuokan.liang@gmail.com> - 2012-06-23 08:27 +0000
Re: Default path for opening files Dominik Hezel <sendme2000@me.com> - 2012-06-26 08:48 +0000
Re: Default path for opening files "E. Martín-Serrano" <eMartinSerrano@telefonica.net> - 2012-06-22 09:15 +0000
Re: Default path for opening files David Bailey <dave@removedbailey.co.uk> - 2012-06-23 08:22 +0000
Re: Default path for opening files "E. Martín-Serrano" <eMartinSerrano@telefonica.net> - 2012-06-24 08:22 +0000
Re: Default path for opening files awnl <awnl@gmx-topmail.de> - 2012-06-25 08:02 +0000
Re: Default path for opening files "E. Martín-Serrano" <eMartinSerrano@telefonica.net> - 2012-06-26 08:47 +0000
Re: Default path for opening files nanobio9 <kuokan.liang@gmail.com> - 2012-07-01 06:13 +0000
csiph-web