[Pythonmac-SIG] using py-appscript
I can use (Python) appscript reasonably well, if I know exactly what "components" I am looking for, e.g., app('TextEdit').documents['Read Me'].paragraphs[1].get() But if I'm faced with a new application I don't know where to start. Is there any way to interactively explore what is available? Something like dir(app('TextEdit')) -> [..., "documents", ...] to let me know that the app has document components app('TextEdit').documents.keys() -> [..., "Read Me", ...] to let me know that "Read Me" is one of the documents and so on. - David ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] using py-appscript
On Sep 9, 2008, at 6:06 AM, David Morley wrote: I can use (Python) appscript reasonably well, if I know exactly what "components" I am looking for, e.g., app('TextEdit').documents['Read Me'].paragraphs[1].get() But if I'm faced with a new application I don't know where to start. Is there any way to interactively explore what is available? Something like dir(app('TextEdit')) -> [..., "documents", ...] to let me know that the app has document components app('TextEdit').documents.keys() -> [..., "Read Me", ...] to let me know that "Read Me" is one of the documents and so on. http://osx.iusethis.com/app/prefabuibrowser this seems to do that. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Please help! py2app broken
I was able to run py2app fine until recently. I think the only thing I did was upgrade to svn 1.5.1. Now I see this: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 548, in _run self.run_normal() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 600, in run_normal mf = self.get_modulefinder() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-pac kages/py2app-0.3.6-py2.5.egg/py2app/build_app.py", line 508, in get_modulefinder debug=debug, File "build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py", line 243, in find_modules find_needed_modules(mf, scripts, includes, packages) File "build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py", line 179, in find_needed_modules path = m.packagepath[0] TypeError: 'NoneType' object is unsubscriptable > /Users/rowen/TUIRoot/BuildForMac/build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py(179)find_needed_modules() This is using MacOS X 10.4.11 python 2.5.2 (the python.org distro) setuptools 0.6c8 (installed via easy_install) py2app 0.3.6 (installed via easy_install) The file in which the error occurs: build/bdist.macosx-10.3-i386/egg/modulegraph/find_modules.py does not seem to actually exist, so I'm not sure where to start on debugging. I am desperate because I cannot distribute my application. -- Russell ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Please help! py2app broken
Russell E. Owen wrote: I was able to run py2app fine until recently. I think the only thing I did was upgrade to svn 1.5.1. Now I see this: Russell, this is a total WAG, but I know that setuptools has an incompatibility with svn 1.5 -- it tries to parse the .svn files, and crashes out. It as been fixed in the development version, but the fix has not made it into a release. You might try upgrading setuptools to the dev version. See this blog post: http://mrtopf.de/blog/plone/using-subversion-15-with-setuptools-in-python-technical/ it's worth a try! -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig