Re: Re: Browsing for a Directory
- To: mathgroup at smc.vnet.net
- Subject: [mg89874] Re: [mg89850] Re: Browsing for a Directory
- From: John Fultz <jfultz at wolfram.com>
- Date: Mon, 23 Jun 2008 02:49:06 -0400 (EDT)
- Reply-to: jfultz at wolfram.com
SystemDialogInput[] is actually the direct replacement for the old Experimental`FileBrowse[]. FileNameSetter is useful inside of a user interface, but if you're running a program that's scripting actions rather than allowing the user to drive the actions, then you'll probably want SystemDialogInput[]. Sincerely, John Fultz jfultz at wolfram.com User Interface Group Wolfram Research, Inc. On Sun, 22 Jun 2008 03:26:00 -0400 (EDT), David Park wrote: > Many thanks for asking that question! I was still using the old > > Experimental`FileBrowse[]. > > I think you can use the following form to obtain a directory location: > > FileNameSetter[Dynamic[folder], "Directory"] > > Then you can you can combine this with a filename as follows: > > newfilename = folder <> "Example1.nb" > > -- > David Park > djmpark at comcast.net > http://home.comcast.net/~djmpark/ > > > "Laszlo Sturmann" <lschara at sonic.net> wrote in message > news:g3ihq3$fe8$1 at smc.vnet.net... >> Hi all, >> >> 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? >> >> Thanks, >> >> Laszlo