Re: Python on Mac

Steven D. Majewski (sdm7g@elvis.med.virginia.edu)
Fri, 17 Sep 1993 10:15:58 -0400

Well - I haven't used the Mac Python for a while so I'm not sure,
but generally, Mac documents have a TYPE field and a CREATOR field.
If you write a python script with an Mac editor, the TYPE field will
be set to 'TEXT' ( assuming you save it AS text, and not some native
format ) and the CREATOR will be the Editor program. The creator field
is used to tell the system what program to launch when the document is
clicked on. So if you change the creator field to the field for Python
( does anyone happen to know what that is? ) then the system will launch
python when you click on that file. It is then up to the application
( PYTHON ) to recognize that it has been given an initial event ( a
file open event ) and open and read that file. I don't happen to know
if Mac Python does this. If I get a chance to sit in front of a Mac
for a while, I'll give it a test.

Does Mac Python generate .pyc files ? and are they set to
creator=Python ? If that is the case, then the .pyc files should be
'clickable' applications.

-Steve Majewski (804-982-0831) <sdm7g@Virginia.EDU>
-Univ. of Virginia Department of Molecular Physiology and Biological Physics