Gregory Lypny wrote:

> I'm writing a handler to open files and restrict the choices to text
> files.
> 
> answer file "Choose your data fileŠ" with filter TEXT
> 
> When I use the filter above in OS X, AppleWorks text files are
> recognized but plain text files are not (they're dimmed).  I'd like to
> be able to choose among all files with a .txt extension.  What am I
> doing wrong?

'TEXT' would only be used with the type keyword:

  answer file "Choose your data file..." of type "TEXT"

Filters are used as string matches like this:

  answer file "Choose your data file..." with filter "*.txt"

 
Also, for cross-platform compatibility you may want to use three periods
rather than the ellipss character at the end of your prompt.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge 2.1: Publish any database on any site
 ___________________________________________________________
 [EMAIL PROTECTED]       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc

_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard

Reply via email to