[Pythonmac-SIG] PyOSA preview

has hengist.podd at virgin.net
Thu Mar 1 22:48:08 CET 2007


Hi all,

PyOSA, my second attempt at implementing a full Python OSA component,  
is starting to come together. This is an early version, may be buggy/ 
incomplete, use at own risk, etc. Most of the major features are  
working in the large - saving/loading (works on PPC, currently breaks  
on i386 due to OS bug), compiling, running, displaying results, event  
handling, appscript integration - so should give a good flavour of  
where it's going. You can grab the relevant files via subversion:

- PyOSA (XCode project, readme, license and samples):

	svn checkout http://svn.macosforge.org/repository/appscript/py- 
osacomponent/trunk/

- py-appscript 0.17.2 unstable:

	svn checkout http://svn.macosforge.org/repository/appscript/py- 
appscript/branches/py-appscript-0.17.2-unstable/

See PyOSA's ReadMe file and sample scripts for more information.

If Script Editor tries to compile your Python code as applescript  
(there are some known bugs in SE's language menu on 10.4), try  
setting the default language in SE's preferences. Failing that,  
osascript works just fine, or you could grab a demo copy of Script  
Debugger and temporarily use that.

Enjoy,

has

p.s. For anyone interested in what's going on in the rest of the  
appscript world these days, Matt Neuburg's just done a very nice  
article at O'Reilly's MacDevCenter: <http://www.macdevcenter.com/pub/ 
a/mac/2007/02/27/replacing-applescript-with-ruby.html>. Not that you  
need to drop py-appscript and rush to the Dark Side - both bridges  
provide the same level of application scripting support - but it's  
great to see the word getting around. The ObjC port of appscript is  
also shaping up nicely; see my sig for the link.

-- 
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org
http://appscript.sourceforge.net/objc-appscript.html



More information about the Pythonmac-SIG mailing list