home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!city-lights.apple.com!user
- From: mattd@apple.com (Matt Deatherage)
- Newsgroups: comp.sys.apple2
- Subject: Re: hfs.FST?
- Message-ID: <mattd-200892145812@city-lights.apple.com>
- Date: 20 Aug 92 21:58:39 GMT
- References: <1992Aug18.161646.19380@yang.earlham.edu>
- Sender: usenet@Apple.COM
- Followup-To: comp.sys.apple2
- Organization: Developer Technical Support, Apple Computer, Inc.
- Lines: 26
-
- In article <1992Aug18.161646.19380@yang.earlham.edu>,
- deviant@yang.earlham.edu wrote:
- >
- > Is there any way for GS/OS to recognize the file types of mac documents
- > and applications? I'm talking some way for these files to be recognized
- > in the same way other files are recognized. No more unknown filetype when
- > you use Info. And if that was recognizable, then there could be icons
- > assigned to mac files/apps, and not by filename.
-
- HFS uses four-byte file types and four-byte creator types. GS/OS uses
- two-byte file types and four-byte auxiliary types. There's no way to
- exclusively map all HFS types into GS/OS types, and trying to do so would
- create a file type assigment list from hell that no one could ever, ever
- possibly keep up with.
-
- The default mappings are listed in "Programmer's Reference for System 6.0,"
- and the option_list information in that book shows you how you can get at
- the untranslated HFS file type and creator type using GS/OS calls. This
- is how Teach recognizes MacWrite documents, for example.
-
- ============================================================================
- Matt Deatherage, Developer Support Center, Apple Computer, Inc.
- Personal mail only -- please POST technical questions, questions about
- Apple and its policies, where to find documents and related inquiries.
- The opinions I express don't represent Apple, which makes us both happy.
- ============================================================================
-