apple single/double files

Tom Biddulph bid at starnine.UUCP
Wed Apr 6 10:46:42 AEST 1988


I have just encountered a problem with both Apple single and
double format files under A/UX and their use with the "launch"
facility.

I currently have the ability to copy any macintosh executable
from the Macintosh filesystem onto A/UX. I create it as an
"Apple double" format file. The header I am currently placing
on it looks like this:

      address
	0x0:	0x51607	0x10000	Macintosh	0x3
	0x1a:	0x9	0x3e	0x20
	0x26:	0x2	0x100	0x248c7
	0x32:	0x4	0x5e	0x22

"adb" script to get this info is:

	0?2X16Cxn3Xn3Xn3X

The problem seems to be in the "Comment" field (this is the last
entry starting at 0x32). This Macintosh executable will not launch
with the above Apple double format header. If I make one change
to the above header and change the "number of entries" field from
0x3 to 0x2 (address 0x18 above), it works perfectly from "launch".

I either have the "comment" field totally mucked up (I originally
started it as a "c" string, then changed it to a "pascal" string --
neither worked), or "launch" can't deal with any more information
in the header than 2 entries (the 2 entries that are there are:
9 means finder information; 2 means resource information).

Can anyone out there comment on this anomally in "launch" and apple
double format headers??

Thanks in advance.

-bid-
*ix
(Tom Biddulph, StarNine Technologies)



More information about the Comp.unix.aux mailing list