Greetings from San Francisco Bay!
Thanks for looking at this; it turned out that the problem was that I
was running Leopard's X11. My system.log had lots of this:
Jun 18 09:52:43 mymachine System Events[32983]: Unable to find class:
X11Application, exiting
Jun 18 09:52:43 mymachine com.apple.launchd[108]
([0x0-0x3a33a3].com.apple.systemevents[32983]): Exited with exit code: 1
Once I quit X11, things started working again. That's a bug
somewhere -- running a buggy app shouldn't be able to keep System Events
from running -- but I can't figure out where well enough to report it.
Bill
> Am 2008-06-19 um 19:16 schrieb Bill Janssen:
>
> > 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()
>
>
> It works for me (OSX 10.5 intel):
>
> Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
> [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
> from appscript import k, app
> se = app('System Events')
> se
> app(u'/System/Library/CoreServices/System Events.app')
> se.processes()
> [app(u'/System/Library/CoreServices/System
> Events.app').application_processes[u'loginwindow'], app(u'/System/
> Library/CoreServices/System
> Events.app').application_processes[u'Folder ...
>
>
>
> I first thought System Events might be a scripting addition (osax):
> http://appscript.sourceforge.net/py-appscript/doc/osax/index.html
>
> http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptX/Concepts/as_related_apps.html#/
>
> /apple_ref/doc/uid/TP40001570-1149074-BAJEIHJA
>
>
>
> Greetlings from Lake Constance!
> Hraban
> ---
> http://www.fiee.net
> https://www.cacert.org (I'm an assurer)
>
>
>
> _______________________________________________
> Pythonmac-SIG maillist - [email protected]
> http://mail.python.org/mailman/listinfo/pythonmac-sig
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig