I have the following problem:
I created notebooks with Mathematica 4 on a Windows PC. I stored it
with "Save As..." as Name.nb . Then I sent it by email as an
attachment to a Professor of mine. He is using a Macintosh
(Mathematica 4 / 4.1). When he saves the attachment on his hard disk
(as Name.nb) Mathematica doesn´t recognize this file and doesn´t open
it. Changing the name of the stored file to Name.txt and then again to
Name.nb solves this problem, the notebook can be opened.
How do I have to save the notebook or send the attachment that the
notebook can be opened at once without renaming the extension?
I appreciate any help!
TIA
Doris S.
When mac files are sent as a plain attachment, it loses the creator
codes that in OS 9 and before are needed for the Mac to figure out what
program to open when the user double clicks on the file. In OS X,
either the creator code or the extension will work. (Of course, the PC
does not make the special invisible file in the first place.)
If your professor sees a generic icon for the .nb file, he will have to
open the file from within Mathematica, or use any of several different
utility programs to change the creator code to 'Mathematica'. I believe
that there are utilities that will automatically assign the file's
'owner' based on the extension, but I have no examples.
george
Andrzej Kozlowski
Yokohama, Japan
http://www.mimuw.edu.pl/~akoz/
http://platon.c.u-tokyo.ac.jp/andrzej/
> I created notebooks with Mathematica 4 on a Windows PC. I stored it
> with "Save As..." as Name.nb . Then I sent it by email as an
> attachment to a Professor of mine. He is using a Macintosh
> (Mathematica 4 / 4.1). When he saves the attachment on his hard disk
> (as Name.nb) Mathematica doesn´t recognize this file and doesn´t open
> it. Changing the name of the stored file to Name.txt and then again to
> Name.nb solves this problem, the notebook can be opened.
>
> How do I have to save the notebook or send the attachment that the
> notebook can be opened at once without renaming the extension?
I suspect that your e-mail software is labeling the attachment with the
generic APPLICATION/OCTET-STREAM MIME content type/subtype, which usually
has no default action associated with it because it refers to what appears
to be unknown data.
The safest thing you can do is to ensure that both your and your
colleague's e-mail client software is configured to associate Mathematica
notebooks with the APPLICATION/MATHEMATICA MIME content type/subtype.
On your side, that means making sure that the extension .nb is associated
with APPLICATION/MATHEMATICA. On the colleague's side, that means making
sure that attachments with the type APPLICATION/MATHEMATICA are opened by
the Mathematica front end.
You will need to consult the documentation for your e-mail software to
figure out how MIME types are configured.
--
P.J. Hinton
User Interface Programmer pa...@wolfram.com
Wolfram Research, Inc.
Disclaimer: Opinions expressed herein are those of the author alone.