[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple filters



Rochelle Hatton wrote:
> 
> Martin Schultz wrote:
> 
> > Now, the Unix filter only allows one "exclusive" selection, but
> > (contrary to the Windows version) can be edited by the user. I have
> > never tried to use the simulataneous entries which according to the
> > documentation should work as you suggest, but you can achieve such an
> > effect with something like "*.[jtp][pin][gfg]" (often it is
> > sufficiently exact to specify something like "*.[jtp]??" instead). In
> > summary: take advantage of the way Unix expands wild cards.
> 
> Yes, I'm still interested in a solution, but there doesn't really
> seem to be one. Unfortunately the files I wish to select (well not
> actually me, but the end user who does not know IDL) have 2 different
> extensions, so I want to display all files that have either extension.
> I tried your suggestion, using
> filename = DIALOG_PICKFILE(path='~', filter="*.[dat][img]")
> but no files are displayed at all.

Well, that wasn't my solution ;-) Th epoint is that Uni xinterprets
the [] brackets as sets of individual characters. So, you rexample
would expand to  *.di *.dm *.dg *.ai *.am *.ag *.ti *.tm *.tg - pretty
certainly not what you want. Try for example *.[di]?[tg]   (This means
*.d?t (ok) *.d?g (useless) *.i?t (useless) and *.i?g (ok)


> Using filter="*.[jtp]??" instead, is like using "*.*" .
But that's very likely because you only have image files in this
directory. Try to put e.g. a README file there and see if it gets
listed.

Good luck,

Martin

-- 
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[ Dr. Martin Schultz   Max-Planck-Institut fuer Meteorologie    [[
[[                      Bundesstr. 55, 20146 Hamburg             [[
[[                      phone: +49 40 41173-308                  [[
[[                      fax:   +49 40 41173-298                  [[
[[ martin.schultz@dkrz.de                                        [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[