1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
5 <meta http-equiv=
"content-type" content=
"text/html; charset=iso-8859-1">
6 <title>Python and the Finder
</title>
7 <meta name=
"generator" content=
"BBEdit 6.5.3">
8 <link rel=
"SHORTCUT ICON" href=
"pythonsmall.gif">
9 <META NAME=
"AppleIcon" CONTENT=
"pythonsmall.gif">
12 <h1>Running Python scripts from the Finder
</h1>
16 <img src=
"python.gif" width=
"128" height=
"128" align=
"top" alt=
"">
19 <p>The application PythonLauncher will start a Python interpreter
20 when you drop a Python source file onto it, any file with a
<tt>.py
</tt>
21 or
<tt>.pyw
</tt> extension. If you set PythonLauncher as the default
22 application to open a file
23 (
<a href=
"help:search=Changing%20the%20application%20that%20opens%20a%20file bookID=Mac%20Help">
24 tell me more
</a>) this also works when you double click a Python script.
</p>
26 <p>PythonLauncher has preferences per filetype for selecting
27 the interpreter to use, and how to launch it: in a Terminal window
28 or not, etc. Holding the Option key while launching your script will
29 bring up a window that allows changing these settings for a single