request-file/filter

Started by Steven White on 8-Apr-2015/11:53:03-7:00
The (partial) syntax of the request-file function seems to be: request-file/only/filter <Filter of block of filters> but the documentation does not explain what a 'Filter of block of filters' might be. Can any one explain? What I am trying to do is have a program request the name of a 'jpg' file, and would like it if the requester window would present only the names of jpg files, instead of all files. Thank you.
request-file/filter ["*.jpg" "*.jpeg"]
Thank you. I left off the quotes. Bit of a head-slapper there.
Seems incongruous-(obviously) not [%*.jpg %*.jpeg]?
I think that's because the /file refinement of the 'request-file function uses the file datatype: request-file/filter/file "*.jpg" %img.jpg

Reply