RE: FileNameDialog
- To: mathgroup at smc.vnet.net
- Subject: [mg38785] RE: [mg38768] FileNameDialog
- From: "David Park" <djmp at earthlink.net>
- Date: Sun, 12 Jan 2003 06:17:11 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Rainer, In later Versions of Mathematica you can use... filepath = Experimental`FileBrowse[] You have to use "Save" and ignore the warning about replacing the file. You can find it in Help under Built In Functions\Additional Functions\Experimental Context\Notebooks. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Rainer Bausch [mailto:bausch at uni-kassel.de] To: mathgroup at smc.vnet.net In a contribution to mathgroup, somebody asserted in 1997 that userFile=FrontEndExecute[{FrontEndToken["FileNameDialog"]}] allows the user to input a file name from the Windows file selector box into a Mathematica variable. (Search in the Archive for the keyword FileNameDialog; to find this contribution.) However, this does not work in Mathematica 4.1 (under Windows NT). I guess that it did not work in 3.0 either. It is true that the file selector box appears, and that the name and path of the selected file is pasted into the notebook, but the user filename entry is not transferred into the variable. Any help will be appreciated.