<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>1.3 How to run a Python script</title> <META NAME="description" CONTENT="1.3 How to run a Python script"> <META NAME="keywords" CONTENT="mac"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <meta http-equiv="Content-Type" content="text/html; charset="> <link rel="STYLESHEET" href="mac.css"> <link rel="first" href="mac.html"> <link rel="contents" href="contents.html" title="Contents"> <link rel="index" href="genindex.html" title="Index"> <LINK REL="next" href="argv.html"> <LINK REL="previous" href="interpreter.html"> <LINK REL="up" href="using.html"> <LINK REL="next" HREF="node7.html"> </head> <body> <DIV CLASS="navigation"> <table align="center" width="100%" cellpadding="0" cellspacing="2"> <tr> <td><A href="interpreter.html"><img src="../icons/previous.gif" border="0" height="32" alt="Previous Page" width="32"></A></td> <td><A href="using.html"><img src="../icons/up.gif" border="0" height="32" alt="Up One Level" width="32"></A></td> <td><A HREF="node7.html"><img src="../icons/next.gif" border="0" height="32" alt="Next Page" width="32"></A></td> <td align="center" width="100%">Macintosh Library Modules</td> <td><A href="contents.html"><img src="../icons/contents.gif" border="0" height="32" alt="Contents" width="32"></A></td> <td><a href="modindex.html" title="Module Index"><img src="../icons/modules.gif" border="0" height="32" alt="Module Index" width="32"></a></td> <td><A href="genindex.html"><img src="../icons/index.gif" border="0" height="32" alt="Index" width="32"></A></td> </tr></table> <b class="navlabel">Previous:</b> <a class="sectref" href="interpreter.html">1.2 Entering the interactive</A> <b class="navlabel">Up:</b> <a class="sectref" href="using.html">1. Using Python on</A> <b class="navlabel">Next:</b> <a class="sectref" HREF="node7.html">1.3.1 Drag and drop</A> <br><hr> </DIV> <!--End of Navigation Panel--> <H1><A NAME="SECTION003300000000000000000"> 1.3 How to run a Python script</A> </H1> <P> There are several ways to run an existing Python script; two common ways to run a Python script are ``drag and drop'' and ``double clicking''. Other ways include running it from within the IDE (see Section <A href="IDE.html#IDE">1.6</A>), or launching via AppleScript. <P> <p><hr> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></a> <UL CLASS="ChildLinks"> <LI><A href="node7.html">1.3.1 Drag and drop</a> <LI><A href="creator-code.html">1.3.2 Set Creator and Double Click</a> </ul> <!--End of Table of Child-Links--> <DIV CLASS="navigation"> <p><hr> <table align="center" width="100%" cellpadding="0" cellspacing="2"> <tr> <td><A href="interpreter.html"><img src="../icons/previous.gif" border="0" height="32" alt="Previous Page" width="32"></A></td> <td><A href="using.html"><img src="../icons/up.gif" border="0" height="32" alt="Up One Level" width="32"></A></td> <td><A HREF="node7.html"><img src="../icons/next.gif" border="0" height="32" alt="Next Page" width="32"></A></td> <td align="center" width="100%">Macintosh Library Modules</td> <td><A href="contents.html"><img src="../icons/contents.gif" border="0" height="32" alt="Contents" width="32"></A></td> <td><a href="modindex.html" title="Module Index"><img src="../icons/modules.gif" border="0" height="32" alt="Module Index" width="32"></a></td> <td><A href="genindex.html"><img src="../icons/index.gif" border="0" height="32" alt="Index" width="32"></A></td> </tr></table> <b class="navlabel">Previous:</b> <a class="sectref" href="interpreter.html">1.2 Entering the interactive</A> <b class="navlabel">Up:</b> <a class="sectref" href="using.html">1. Using Python on</A> <b class="navlabel">Next:</b> <a class="sectref" HREF="node7.html">1.3.1 Drag and drop</A> <hr> <span class="release-info">Release 2.2, documentation updated on December 21, 2001.</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>