RE: Re: RE: Experimental`FileBrowse
- To: mathgroup at smc.vnet.net
- Subject: [mg35025] RE: [mg35002] Re: [mg34968] RE: [mg34954] Experimental`FileBrowse
- From: "DrBob" <majort at cox-internet.com>
- Date: Thu, 20 Jun 2002 02:13:26 -0400 (EDT)
- Reply-to: <drbob at bigfoot.com>
- Sender: owner-wri-mathgroup at wolfram.com
No, I wasn't confused about what it was supposed to do; it wasn't doing ANYTHING, just like I said. That was because I didn't use the full qualified name, though -- there's a FileBrowse in the System context that does nothing. Dave wasn't confused either; he's saying the dialog boxes are badly written, and they are. FileBrowse[] doesn't save a file, and FileBrowse[False] doesn't open one. Bobby -----Original Message----- From: Dale Horton [mailto:daleh at wolfram.com] To: mathgroup at smc.vnet.net Subject: [mg35025] [mg35002] Re: [mg34968] RE: [mg34954] Experimental`FileBrowse 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] To: mathgroup at smc.vnet.net > > > > 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