From: Nate Dudenhoeffer on
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
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
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.