Updated: 11/7/2002; 1:37:02 PM.
Kevin Altis' Radio Weblog

PythonCard, Python, OS X, and opinions on whatever technology I'm dabbling in these days like XML-RPC and SOAP.

Categories: Python, PythonCard, OS X, Web Services (XML-RPC and SOAP)
        

Monday, October 21, 2002

Jon Udell has posted an article about Python as the "scripting language [to] drive a major, user-facing, GUI-intensive application". I have often wondered myself why Mahogany wasn't done in Python and wxPython instead of C++ and wxWindows.

We're exploring the scriptability of apps with PythonCard. Both the codeEditor and textEditor expose the Python shell, which is built-in to all PythonCard applications. However, rather than just having a menu item to hide and show the shell, we added the ability to run scripts, or Scriptlets as I like to call them which are analogous to the VBA scripts people can run in Microsoft Office.

The entire object model of a PythonCard application is exposed, so if an app doesn't have the feature you want, you can probably extend it with a short "macro" in Python. All scripts are run in the shell, so they share the shell namespace and thus scripts can share variables since the namespace doesn't go away until the application is closed. I posted an example of a scriptlet with the codeEditor back in May.


12:36:02 PM    comment []

It looks like the floodgates have opened on Mitch Kapor's OSAF project. Slashdot has a topic "Mitch Kapor's Outlook-Killer" and the posts on the mailing list have taken off. Dan Gillmor wrote an article in the Mercury News, that I forgot to post yesterday. See my previous post about the "open source Agenda" for more information.


12:21:09 PM    comment []

© Copyright 2002 Kevin Altis.
 
October 2002
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Aug   Nov



Subscribe to "Kevin Altis' Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.