I'm trying to prompt for files ending in "-raw.png" via

SystemDialogInput["FileOpen", {"None", {"Image files" -> {"*-raw.png"}}}, WindowTitle -> "Select RAW image file"]

but that's not matching the files. Prompting with "*.png" works, but I'd like to be more restrictive.

  • $\begingroup$ I don't believe SystemDialogInput[] can do anything more restrictive than restrict by extension. $\endgroup$ – J. M. will be back soon Sep 29 '17 at 1:41
  • $\begingroup$ You might try it with "Image files" -> Filenames["*-raw.png"] This seems to be okay but only when SystemDialogInput and Filenames are looking at the same directory. $\endgroup$ – LouisB Sep 29 '17 at 7:39
  • $\begingroup$ It works as expected in 11.2 on Win 8.1 Pro. Which version of Mathematica are you using and which OS? $\endgroup$ – Edmund Sep 30 '17 at 2:46
  • $\begingroup$ on macOS 10.12.6. $\endgroup$ – Brian Swift Sep 30 '17 at 17:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.