DAGDA SEARCH | Back to results | Support

MacPython / JavaScript - Python Wiki

Source: https://wiki.python.org/python/platforms/MacPython/JavaScript.html

  1. Python Wiki /
  2. Python Wiki /
  3. Platform-Specific /
  4. MacPython /
  5. MacPython / JavaScript
View as Markdown

MacPython / JavaScript

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

Comprehensive Wikipedia Entry on Javascript: http://en.wikipedia.org/wiki/JavaScript

John J. Lee has an (unmaintained) Python-Javascript bridge:

http://wwwsearch.sourceforge.net/python-spidermonkey/

OS X 10.4 now includes Javascript and Cocoa bridges which can be used in Widgets and /WebKit objects.

http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSProgTopics/Tasks/ObjCFromJavaScript.html#//apple_ref/doc/uid/30001215

But PyObjC may be superior.

From The ADC article “Using PyObjC for Developing Cocoa Applications with Python” ( http://developer.apple.com/cocoa/pyobjc.html)

**Many Bridges to Your Destination** PyObjC is just one of many Cocoa bridges. Apple has offered its Java bridge since Mac OS X 10.0, and Mac OS X Tiger 10.4 rolled out a /JavaScript bridge which allows Dashboard Widgets to communicate with Objective-C objects. Third-party developers have also created bridges for C#, Lisp, Perl, Ruby and Smalltalk to name a few. And, of course, Python.

PreviousMacPython / Jacks Test Page Next MacPython / Launch Services