Re: Browsing for a Directory
- To: mathgroup at smc.vnet.net
- Subject: [mg89852] Re: Browsing for a Directory
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Sun, 22 Jun 2008 03:26:23 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <g3ihq3$fe8$1@smc.vnet.net>
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