At 09:59 -0600 04/04/2002, Carl D. Earnhart II wrote:
>If I replace "TEXT" with "RTF", " RTF", "RTF " it does not work. However,
>it I use "" it show everything. All the text files, the rtf files,
>everything.
Yeah -- that's the way of Mac. TEXT means RTF, SimpleText and HTML.
They are all variants of plain text. If you're not sure of the RTFish
nature of a given file the user is trying to import you'll have to
parse for an extension in the filename (which also doesn't mean much
on Macs so likely is not going to be present).
However RTF files begin their contents with the string "{\rtf" so you
could look for that -- if the first ten or so chars of any particular
file include that string you know they're RTF. But that doesn't help
you until after the user has chosen a file to open.
Really I'm not sure it's worth worrying about all that much. #text
members can handle HTML, RTF and plain text, so whichever file the
user chooses to open will be readable no matter what.
--
Warren Ockrassa | http://www.nightwares.com/
Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
http://www.osborne.com/indexes/beginners_guides.shtml
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]