Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The documentation for SystemDialogInput shows how to restrict the types of files shown.


...only shows Mathematica notebook files. This also works for other file extensions such as ".txt", ".html", etc., but doesn't work for other file types.

If I have a tab delimited file that with extension ".data" and try:


...the dialog box defaults to all files.

Is there a way to only show other "non-standard" file types?

share|improve this question
up vote 5 down vote accepted

Try this:

SystemDialogInput["FileOpen", {"Data", {"Data" -> {"*.data", "*.dat"}}}]

The doc page for SystemDialogInput describes under "More Information" how to create new file types by listing the patterns they match.

share|improve this answer
Crap, just figured it out. What purpose does the init argument have in this case? – kale Nov 19 '12 at 19:41
@kale You can define several allowed file types. init gives the one the dialog is set to when launched. – Szabolcs Nov 19 '12 at 19:43
Got it. Thanks. No reason to delay accepting this answer. – kale Nov 19 '12 at 19:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.