From: Nate Dudenhoeffer on 13 Jul 2010 05:26 I would like to use SystemDialogInput with FileOpen, but restrict the type of file the user may select. For example, only allow the user to select files like "*.csv". Is there a way to do this? Nate
From: Albert Retey on 14 Jul 2010 05:36 Am 13.07.2010 11:26, schrieb Nate Dudenhoeffer: > I would like to use SystemDialogInput with FileOpen, but restrict the type > of file the user may select. For example, only allow the user to select > files like "*.csv". Is there a way to do this? > > Nate > > something like this should work: SystemDialogInput["FileOpen", {"default.csv", {"CSV" -> {"*.csv"}}}] hth, albert
From: John Fultz on 14 Jul 2010 05:35 On Tue, 13 Jul 2010 05:26:37 -0400 (EDT), Nate Dudenhoeffer wrote: > I would like to use SystemDialogInput with FileOpen, but restrict the type > of file the user may select. For example, only allow the user to select > files like "*.csv". Is there a way to do this? > > Nate The documentation for SystemDialogInput[] gives the specification for this. In your example, SystemDialogInput["FileOpen", {"", {"CSV Files" -> {"*.csv"}}}] Sincerely, John Fultz jfultz(a)wolfram.com User Interface Group Wolfram Research, Inc.
|
Pages: 1 Prev: Why Evaluate[Defer[1+1]] does not return 2 ? Next: Division by zero Optimization |