ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Macintosh Module Reference
1. Using Python on a Macintosh
1.2 The IDE
1.2.1 Using the ``Python Interactive'' window
1.2.2 Writing a Python Script
1.2.3 Executing a script from within the IDE
1.2.4 ``Save as'' versus ``Save as Applet''

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Macintosh Module Reference >> 1. Using Python on a Macintosh >> 1.2 The IDE
ActivePython 2.4 documentation


1.2.4 ``Save as'' versus ``Save as Applet''

When you are done writing your Python script you have the option of saving it as an ``applet'' (by selecting ``Save as applet'' from the ``File'' menu). This has a significant advantage in that you can drop files or folders onto it, to pass them to the applet the way command-line users would type them onto the command-line to pass them as arguments to the script. However, you should make sure to save the applet as a separate file, do not overwrite the script you are writing, because you will not be able to edit it again.

Accessing the items passed to the applet via ``drag-and-drop'' is done using the standard sys.argv mechanism. See the general documentation for more

Note that saving a script as an applet will not make it runnable on a system without a Python installation.

See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved