[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/psf/wiki/main/python/platforms/MacPython/JavaScript.md [Back]  [Original]

# MacPython / JavaScript

```{admonition} Legacy Wiki Page
:class: note

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see [python.org](https://www.python.org).
```

Comprehensive Wikipedia Entry on Javascript: [http://en.wikipedia.org/wiki/JavaScript](http://en.wikipedia.org/wiki/JavaScript)

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

[http://wwwsearch.sourceforge.net/python-spidermonkey/](http://wwwsearch.sourceforge.net/python-spidermonkey/)

OS X 10.4 now includes Javascript and Cocoa bridges which can be used in Widgets and [/WebKit](./MacPython(2f)JavaScript(2f)WebKit.html) objects.

[http://developer.apple.com/documentation/AppleApplications/Conceptual/SafariJSProgTopics/Tasks/ObjCFromJavaScript.html#//apple_ref/doc/uid/30001215](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](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](./MacPython(2f)JavaScript(2f)JavaScript.html) 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.

Web Proxy Viewer  |  New URL  |  Original Page