Re: RE: Experimental`FileBrowse
- To: mathgroup at smc.vnet.net
- Subject: [mg35002] Re: [mg34968] RE: [mg34954] Experimental`FileBrowse
- From: Dale Horton <daleh at wolfram.com>
- Date: Wed, 19 Jun 2002 05:52:35 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
There seems to be some confusing about what Experimental`FileBrowse is intended to do. It is a function that returns a filename from an interactive filename dialog. The filename dialog can be in either open or save mode. Experimental`FileBrowse does not cause the opening or saving. It returns the filename to be opened or saved. Here's an example. In[1]:= gr=Plot[x,{x,0,1}]; In[2]:= InteractiveExport[expr_] := Module[{fn}, fn=Experimental`FileBrowse[]; If[fn=!=$Failed, Export[fn, expr]]; ] In[3]:= InteractiveExport[gr] In[4]:= InteractiveImport[] := Module[{fn, in}, fn=Experimental`FileBrowse[False]; If[fn=!=$Failed, in=Import[fn]; If[Head[in]===Graphics, Show[in];, in] ] ] In[5]:= InteractiveImport[] At 11:24 PM 6/15/2002, David Park wrote: >Bobby, > >On my 4.1, Windows 98, Experimental`FileBrowse[] brings up the Windows file >browser. After I maneuver around and select a file, I have to "Save" it. Of >course, I don't really want to Save anything. Then I get a message saying >the file already exist and do I want to save anyway. Of course I don't, but >I answer Yes anyway. Then it returns the file path name and, in fact, >doesn't save anything. But, the method of operation does not fill one with >confidence! > >David Park >djmp at earthlink.net >http://home.earthlink.net/~djmp/ > > > From: DrBob [mailto:majort at cox-internet.com] > > > > On my machine, in my copy of Mathematica 4.1, Experimental`FileBrowse does > > nothing. Has it been unsupported? > > > > Bobby > > > > Dr. Bobby Treat > > Survey Sampling: http://www.bus.utexas.edu/courses/msis/sta376/ > > OR Models: http://www.me.utexas.edu/~treatb/ > > Austin INFORMS: http://www.me.utexas.edu/~informs/ > > > > -Dale