<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <link rel="STYLESHEET" href="mac.css" type='text/css' /> <link rel="SHORTCUT ICON" href="../icons/pyfav.gif" /> <link rel='start' href='../index.html' title='Python Documentation Index' /> <link rel="first" href="mac.html" title='Macintosh Library Modules' /> <link rel='contents' href='contents.html' title="Contents" /> <link rel='index' href='genindex.html' title='Index' /> <link rel='last' href='about.html' title='About this document...' /> <link rel='help' href='about.html' title='About this document...' /> <LINK rel="next" href="macpython-modules.html"> <LINK rel="prev" href="contents.html"> <LINK rel="parent" href="mac.html"> <LINK rel="next" href="getting-OSX.html"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name='aesop' content='information' /> <META name="description" content=". Using Python on a Mac OS 9 Macintosh "> <META name="keywords" content="mac"> <META name="resource-type" content="document"> <META name="distribution" content="global"> <title>1. Using Python on a Mac OS 9 Macintosh </title> </head> <body> <DIV CLASS="navigation"> <div id='top-navigation-panel'> <table align="center" width="100%" cellpadding="0" cellspacing="2"> <tr> <td class='online-navigation'><a rel="prev" title="Contents" href="contents.html"><img src='../icons/previous.png' border='0' height='32' alt='Previous Page' width='32' /></A></td> <td class='online-navigation'><a rel="parent" title="Macintosh Library Modules" href="mac.html"><img src='../icons/up.png' border='0' height='32' alt='Up One Level' width='32' /></A></td> <td class='online-navigation'><a rel="next" title="1.1 Getting and Installing" href="getting-OSX.html"><img src='../icons/next.png' border='0' height='32' alt='Next Page' width='32' /></A></td> <td align="center" width="100%">Macintosh Library Modules</td> <td class='online-navigation'><a rel="contents" title="Table of Contents" href="contents.html"><img src='../icons/contents.png' border='0' height='32' alt='Contents' width='32' /></A></td> <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' border='0' height='32' alt='Module Index' width='32' /></a></td> <td class='online-navigation'><a rel="index" title="Index" href="genindex.html"><img src='../icons/index.png' border='0' height='32' alt='Index' width='32' /></A></td> </tr></table> <div class='online-navigation'> <b class="navlabel">Previous:</b> <a class="sectref" rel="prev" href="contents.html">Contents</A> <b class="navlabel">Up:</b> <a class="sectref" rel="parent" href="mac.html">Macintosh Library Modules</A> <b class="navlabel">Next:</b> <a class="sectref" rel="next" href="getting-OSX.html">1.1 Getting and Installing</A> </div> <hr /></div> </DIV> <!--End of Navigation Panel--> <H1><A NAME="SECTION003000000000000000000"><!--x--></A><A NAME="using"><!--z--></A> <BR> 1. Using Python on a Mac OS 9 Macintosh </H1> <P> Using Python on a Macintosh, especially on Mac OS 9 (MacPython-OSX includes a complete <font style="font-variant: small-caps;">Unix</font> Python) can seem like something completely different than using it on a <font style="font-variant: small-caps;">Unix</font>-like or Windows system. Most of the Python documentation, both the ``official'' documentation and published books, describe only how Python is used on these systems, causing confusion for the new user of MacPython-OS9. This chapter gives a brief introduction to the specifics of using Python on a Macintosh. <P> The section on the IDE (see Section <A href="IDE.html#IDE">1.3</A>) is relevant to MacPython-OSX too. <P> <p><br /></p><hr class='online-navigation' /> <div class='online-navigation'> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a> <UL CLASS="ChildLinks"> <LI><A href="getting-OSX.html">1.1 Getting and Installing MacPython-OSX</a> <UL> <LI><A href="node5.html">1.1.1 How to run a Python script</a> <LI><A href="osx-gui-scripts.html">1.1.2 Running scripts with a GUI</a> <LI><A href="node7.html">1.1.3 configuration</a> </ul> <LI><A href="getting.html">1.2 Getting and Installing MacPython-OS9</a> <UL> <LI><A href="interpreter.html">1.2.1 Entering the interactive Interpreter</a> <LI><A href="node10.html">1.2.2 How to run a Python script</a> <UL> <LI><A href="node11.html">1.2.2.1 Drag and drop</a> <LI><A href="creator-code.html">1.2.2.2 Set Creator and Double Click</a> </ul> <LI><A href="argv.html">1.2.3 Simulating command line arguments</a> <LI><A href="node14.html">1.2.4 Creating a Python script</a> <UL> <LI><A href="node15.html">1.2.4.1 In an editor</a> <LI><A href="node16.html">1.2.4.2 Editors with Python modes</a> <LI><A href="scripting-with-BBedit.html">1.2.4.3 BBedit</a> </ul> <LI><A href="configuration.html">1.2.5 Configuration</a> <UL> <LI><A href="EditPythonPrefs.html">1.2.5.1 EditPythonPrefs</a> <LI><A href="search-path.html">1.2.5.2 Adding modules to the Module Search Path</a> <LI><A href="defaults.html">1.2.5.3 Default startup options</a> </ul> </ul> <LI><A href="IDE.html">1.3 The IDE</a> <UL> <LI><A href="node23.html">1.3.1 Using the ``Python Interactive'' window</a> <LI><A href="IDEwrite.html">1.3.2 Writing a Python Script</a> <LI><A href="IDEexecution.html">1.3.3 Executing a script from within the IDE</a> <LI><A href="IDEapplet.html">1.3.4 ``Save as'' versus ``Save as Applet''</a> </ul></ul> <!--End of Table of Child-Links--> </div> <DIV CLASS="navigation"> <div class='online-navigation'><hr /> <table align="center" width="100%" cellpadding="0" cellspacing="2"> <tr> <td class='online-navigation'><a rel="prev" title="Contents" rel="prev" title="Contents" href="contents.html"><img src='../icons/previous.png' border='0' height='32' alt='Previous Page' width='32' /></A></td> <td class='online-navigation'><a rel="parent" title="Macintosh Library Modules" rel="parent" title="Macintosh Library Modules" href="mac.html"><img src='../icons/up.png' border='0' height='32' alt='Up One Level' width='32' /></A></td> <td class='online-navigation'><a rel="next" title="1.1 Getting and Installing" rel="next" title="1.1 Getting and Installing" href="getting-OSX.html"><img src='../icons/next.png' border='0' height='32' alt='Next Page' width='32' /></A></td> <td align="center" width="100%">Macintosh Library Modules</td> <td class='online-navigation'><a rel="contents" title="Table of Contents" rel="contents" title="Table of Contents" href="contents.html"><img src='../icons/contents.png' border='0' height='32' alt='Contents' width='32' /></A></td> <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' border='0' height='32' alt='Module Index' width='32' /></a></td> <td class='online-navigation'><a rel="index" title="Index" rel="index" title="Index" href="genindex.html"><img src='../icons/index.png' border='0' height='32' alt='Index' width='32' /></A></td> </tr></table> <div class='online-navigation'> <b class="navlabel">Previous:</b> <a class="sectref" rel="prev" href="contents.html">Contents</A> <b class="navlabel">Up:</b> <a class="sectref" rel="parent" href="mac.html">Macintosh Library Modules</A> <b class="navlabel">Next:</b> <a class="sectref" rel="next" href="getting-OSX.html">1.1 Getting and Installing</A> </div> </div> <hr /> <span class="release-info">Release 2.3.4, documentation updated on May 20, 2004.</span> </DIV> <!--End of Navigation Panel--> <ADDRESS> See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. </ADDRESS> </BODY> </HTML>