#
1. Using Python on a Mac OS 9 Macintosh

Using Python on a Macintosh, especially on Mac OS 9 (MacPython-OSX includes a complete Unix Python) can seem like something completely different than using it on a Unix-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.

The section on the IDE (see Section 1.3) is relevant to MacPython-OSX too.

Subsections

- 1.1 Getting and Installing MacPython-OSX
  - 1.1.1 How to run a Python script
  - 1.1.2 Running scripts with a GUI
  - 1.1.3 configuration
- 1.2 Getting and Installing MacPython-OS9
  - 1.2.1 Entering the interactive Interpreter
  - 1.2.2 How to run a Python script
    - 1.2.2.1 Drag and drop
    - 1.2.2.2 Set Creator and Double Click
  - 1.2.3 Simulating command line arguments
  - 1.2.4 Creating a Python script
    - 1.2.4.1 In an editor
    - 1.2.4.2 Editors with Python modes
    - 1.2.4.3 BBedit
  - 1.2.5 Configuration
    - 1.2.5.1 EditPythonPrefs
    - 1.2.5.2 Adding modules to the Module Search Path
    - 1.2.5.3 Default startup options
- 1.3 The IDE
  - 1.3.1 Using the ``Python Interactive'' window
  - 1.3.2 Writing a Python Script
  - 1.3.3 Executing a script from within the IDE
  - 1.3.4 ``Save as'' versus ``Save as Applet''