Re: FileName Widget
- To: mathgroup at smc.vnet.net
- Subject: [mg114563] Re: FileName Widget
- From: "Kevin J. McCann" <kjm at KevinMcCann.com>
- Date: Wed, 8 Dec 2010 06:39:21 -0500 (EST)
- References: <idhivv$92b$1@smc.vnet.net>
Murray, Thanks for the example. The documentation on FileNameSetter is not terribly complete. Is there a way to specify the initial search directory? I couldn't figure it out; although, once a file is chosen, it seems that Mathematica remembers that directory and starts there on the next button push. Kevin On 12/5/2010 9:49 PM, Murray Eisenberg wrote: > It's there, you just have to put the pieces together a bit. Here's one > way, e.g.: > > FileNameSetter[Dynamic[f], "Open"] > name = Dynamic[f] > > On 12/4/2010 6:13 AM, leigh pascoe wrote: >> Has anybody written a widget to find and return file names. For example >> if I want to import an image or data file into mathematica, or assign a >> file name to a $Variable, it would be very convenient to have a function >> key that launched a windows style widget that permitted searching >> through directories (starting with My Computer or C:) and selecting the >> appropriate file. The full path of the selected file would then be >> inserted at the cursor. >> >> That seems such an obvious tool that it must exist already, but I >> haven't seen reference to one anywhere. Anybody? >> >> LP >> >