MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

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
>>
>


  • Prev by Date: Re: Replacement Rule with Sqrt in denominator
  • Next by Date: Re: Replacement Rule with Sqrt in denominator. Also Bug in Series
  • Previous by thread: Re: FileName Widget
  • Next by thread: Re: FileName Widget