[Pythonmac-SIG] appscript can't talk to 'System Events'?

Bill Janssen janssen at parc.com
Thu Jun 19 19:16:45 CEST 2008


So, here's another appscript problem:


/Users/wjanssen 2 % python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from appscript import *
>>> app('System Events').processes()
app('System Events').processes()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-ppc.egg/appscript/reference.py", line 509, in __getattr__
  File "/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-ppc.egg/appscript/reference.py", line 231, in <lambda>
  File "/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-ppc.egg/appscript/reference.py", line 216, in connect
  File "/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-ppc.egg/aem/send/__init__.py", line 50, in __init__
  File "/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-ppc.egg/aem/send/connect.py", line 159, in localapp
  File "/Library/Python/2.5/site-packages/appscript-0.18.1-py2.5-macosx-10.5-ppc.egg/aem/send/connect.py", line 60, in _launchApplication
aem.send.connect.CantLaunchApplicationError: CantLaunchApplicationError -10810: An unknown error has occurred.
>>> import appscript
>>> appscript.__version__
'0.18.1'
>>> 


This is OS X 10.5.3, Apple's Python, PPC G4, appscript installed with
easy_install as per the documentation.

This is kind of a blocker for me :-).

Bill


More information about the Pythonmac-SIG mailing list