Differences between revisions 4 and 5
Revision 4 as of 2007-07-18 06:19:06
Size: 2052
Editor: 203-206-205-32
Comment: fixed pyobjc link
Revision 5 as of 2008-03-11 04:09:57
Size: 2049
Editor: 64-142-14-76
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
 * attachment:50-un_commentLines.py - A Python version of the Apple-provided "Un-Comment" script to be Python-aware. (You'll need to remove the shortcut in the first comment script.) Install at {{{~/Library/Application Support/Apple/Developer Tools/Scripts/10-User Scripts/30-Comments}}}. [1/1/5] Fixed error with perl scripts, and added support for commenting applescripts.  * attachment:un_commentLines.py - A Python version of the Apple-provided "Un-Comment" script to be Python-aware. (You'll need to remove the shortcut in the first comment script.) Install at {{{~/Library/Application Support/Apple/Developer Tools/Scripts/10-User Scripts/30-Comments}}}. [1/1/5] Fixed error with perl scripts, and added support for commenting applescripts.

Running scripts from Xcode

It's not terribly difficult to tell Xcode to launch a Python process and start your script. Create a custom executable, point it at Python, and set the arguments and environment variables appropriately. Detailed instructions are here:

http://www.ulaluma.com/pyx/archives/000956.html

User Scripts

  • attachment:StartupScript - A Python replacement for the Apple-provided example written in Perl. Install at ~/Library/Application Support/Apple/Developer Tools/

  • attachment:un_commentLines.py - A Python version of the Apple-provided "Un-Comment" script to be Python-aware. (You'll need to remove the shortcut in the first comment script.) Install at ~/Library/Application Support/Apple/Developer Tools/Scripts/10-User Scripts/30-Comments. [1/1/5] Fixed error with perl scripts, and added support for commenting applescripts.

Xcode Plug-Ins

http://undefined.org/python/XPython_0.png BR BR And even scarier.. here's the ["MacPython/PyObjC"] class browser demo INSIDE Xcode. Just look at all those proprietary Apple classes: BR http://undefined.org/python/XPython_1.png

Notes

MacPython/XcodeIntegration (last edited 2008-11-15 13:59:46 by localhost)

Unable to edit the page? See the FrontPage for instructions.