opening a text file

Ken Norris pixelbird at interisland.net
Sat Apr 26 15:17:01 EDT 2003


**********
> Date: Fri, 25 Apr 2003 15:43:30 -0700 (PDT)
> From: erik hansen <erikhans08 at yahoo.com>
> Subject: opening a text file
> 
> TD:
> 
> answer file prompt [with defaultPath] [{with
> filter | of type} types] \ [titled windowTitle]
> 
> i tried:
> 
> answer file "Open Music:" with filter "text
> files"
> answer file "Open Music:" of type text
> 
> with no luck.
> 
> i know i missed something obvious...
-----------
Try the form:
[description], *.extension, where description is optional

answer file "Open Music:" with filter "MyMusicText,*.txt"

...at any rate, this form requires the actual extension, and the file has to
be in the default folder.

HTH,
Ken N.







More information about the Use-livecode mailing list