Answer File Command
    Richard Gaskin 
    ambassador at fourthworld.com
       
    Thu Dec  5 13:43:01 EST 2002
    
    
  
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
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc
    
    
More information about the metacard
mailing list