Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!uvaarpa!ra!des7f From: des7f@ra.cs.Virginia.EDU (David Sappington) Newsgroups: comp.sys.mac.programmer Subject: Re: need Apple-Double format help Summary: quick fix, more GatorBox stuff Message-ID: <804@ra.cs.Virginia.EDU> Date: 4 Jan 90 22:14:23 GMT References: Distribution: comp Organization: U.Va. CS Department, Charlottesville, VA Lines: 45 scotth@corp.sgi.com (Scott Henry) writes: > We are using Unix boxes as AppleShare servers. Our interface (a GatorBox) > maps AppleShare <-> nfs/Apple-Double. I am writing a program to convert > ASCII reports to a format readable by programs on the Mac -- we just want > the users to be able to double-click on the icon. Where can I get the > structure of the resource fork of Apple-Double format? I have been able to > reverse engineer parts of it (it does work as is), but I expect that I > could do other neat things if I knew more. Specifically, I'd like to be > able to mark the files as readonly/shareable. A while back I had similar requirements. All I really wanted was to have my unix box generate binary files with a specific creator/type so that they would show up on the desktop with their own icons and not be subjected to the automatic TEXT conversion (CR <-> LF) that is so handy with text files. Unfortunately the docs on the Apple-Double format available from sumex didn't seem to jibe with Cayman GatorSoftware's Apple-Double. My problem was easily solved by creating a blank file, 'xxx', on the mac with the desired creator/type and flags then copying the file to the AppleShare/nfs volume. GatorSoftware automatically generated a %xxx file in addition to the blank xxx file. Anytime I wanted the Unix box to create a file, 'yyy', with the same finder stuff all I had to do was copy %xxx to %yyy. As I recall the % file was only 256 bytes so I eventually just hard coded it into my Unix src. BTW, I've noticed posts from people at Cayman -- wouldn't it be nice if someone posted (or E-mailed to me) the docs on their Apple-Double format. I'm interested in writing a Unix program to convert between Cayman Apple-Double and MacBinary so that I can use zmodem from home to xfer files that were written by a Mac to an AppleShare/nfs volume. Sort of like (x and %x) <=> x.bin. > Please send E-mail, as I only read this group irregularly. Thanks for your > help. I've sent E-mail too but I believe that this might be of general interest to the net. Dave Sappington Inst. for Parallel Computation U. of Virginia des7f@virginia.edu des7f@virginia.bitnet