[Pythonmac-SIG] Alias resource portability between MacOS9 and MacOSX

Jack Jansen jack@oratrix.nl
Wed, 06 Dec 2000 11:44:31 +0100


Folks,
I have a strange problem that I hope someone can help with. I'm running MacOSX 
on one partition, MacOS9 on the other, with MacOSX using the 9 partition for 
its classic emulation.

The problem is that I have to recreate the Python preference file every time I 
switch from 9 to 10 or back: the alis resource that is created by the one 
system isn't understood by the other. The pathname is correct in both cases, 
so I would have guessed that ResolveAlias could hand it, but it can't.

Here's the hex data for the two alis resources:

Alis resource created while MacOS 9 ran standalone:

0000000000D200020001035361700000
00000000000000000000000000000000
000000000000B625EA7F424400000000
2B8006507974686F6E00000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000509DB5E523BF00E302160276
03D4FFFFFFFF00000000000000000000
00000000000000000005535744657600
0001000C00002B8000002B0500002B03
000200195361703A7566733A6A61636B
3A53574465763A507974686F6E00FFFF
0000

Alis created while MacOS 9 ran under MacOS X: 
0000000000D200020001035361700000
00000000000000000000000000000000
000000000000B625DC6F424400000000
2B8006507974686F6E00000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000000
00000000509DB5E5079F00E302160276
03D4FFFFFFFF00000000000000000000
00000000000000000005535744657600
0001000C00002B8000002B0500002B03
000200195361703A7566733A6A61636B
3A53574465763A507974686F6E00FFFF
0000

diffs: word 28 is EA7F vs. DC6F
word 78 is 23BF vs. 079F.

Does anyone else see this same problem?
Does anyone know whether it's possible to create an alis resource that will 
work on both systems? If that is impossible, is there a way to find out 
whether we're running under standalone MacOS9 or 9-under-X, so that I can have 
two different alis resources? Or should I not bother and assume this problem 
goes away when the real MacOSX comes out and people will use either 9 or X but 
not both?
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | ++++ see http://www.xs4all.nl/~tank/ ++++