MathGroup Archive 2008

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

Search the Archive

Re: Browsing for a Directory


Laszlo Sturmann wrote:

> Is there a similar function to
> 
> FileNameSetter[Dynamic[f]]
> 
> with which I can browse and select a directory instead of a file and put 
> it into a variable?

You can use the second argument of FileNameSetter[] to specify that you 
are looking for directories only.

     FileNameSetter[Dynamic[f], "Directory"]


The online documentation reads (under the section "MORE INFORMATION"),

In FileNameSetter[name,"spec"]possible specifications of dialogs to use are:

     "Open"         file opening dialog (default)
     "OpenList"     multiple file opening dialog
     "Save"         file saving dialog
     "Directory"    directory picking dialog



Regards,
-- Jean-Marc


  • Prev by Date: Re: Browsing for a Directory
  • Next by Date: Re: LeafLabels
  • Previous by thread: Re: Browsing for a Directory
  • Next by thread: Re: Browsing for a Directory