Re: [Pythonmac-SIG] Using appscript for GUI interaction, button click

2009-09-13 Thread Charles Miller
Yes, that worked, thanks. Also, thanks for the advice to use ASTranslate. I've had no formal idea how to do the translation from apple script to appscript and so mostly just guess and use common sense, which obviously doesn't always work! Thanks again!!! Charlie On Sep 13, 2009, at 12:

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-13 Thread Aahz
On Sun, Sep 13, 2009, Ronald Oussoren wrote: > > Appscript probably gets installed as a zipped egg, the .python-eggs > directory gets created when a real filesystem path is needed for an item > in such an egg. > > If you install appscript as an unzipped egg the problem should go away. My auto-i

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-13 Thread has
On 13 Sep 2009, at 18:52, Bill Janssen wrote: Is it possible to disentangle appscript from setuptools? I just downloaded the sources to my Snow Leopard machine, did python setup.py build python setup.py install which went just fine. But then I did % python import appscript and got this

Re: [Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-13 Thread Ronald Oussoren
Bill, Appscript probably gets installed as a zipped egg, the .python-eggs directory gets created when a real filesystem path is needed for an item in such an egg. If you install appscript as an unzipped egg the problem should go away. Ronald On 13 sep 2009, at 19:52, Bill Janssen wrote

[Pythonmac-SIG] Appscript and Snow Leopard and setuptools...

2009-09-13 Thread Bill Janssen
Is it possible to disentangle appscript from setuptools? I just downloaded the sources to my Snow Leopard machine, did python setup.py build python setup.py install which went just fine. But then I did % python >>> import appscript and got this big stack trace because a ~/.python-eggs subdire

Re: [Pythonmac-SIG] Using appscript for GUI interaction, button click

2009-09-13 Thread has
Charles Miller wrote: I'm trying to perform the following applescript with the appscript Python module: tell application "System Events" tell process "Preview" to click button "OK" of every window end tell If you're not sure how to translate an AppleScript command to the equivalen

Re: [Pythonmac-SIG] Appscript and Snow Leopard

2009-09-13 Thread has
Norman Gray wrote: Did you force the reinstall? It appears so, since it reached the 10.6 appscript install. How do you do that? My own problem here [1] is that I can't work out how to make appscript play with python 2.6 (or 10.6). If the problem is that easy_install is installing appscr

[Pythonmac-SIG] django webapp using CoreGraphics complains about "wrong architecture"

2009-09-13 Thread Geert Dekkers
Hi there, I have a couple of webapps in django designed to run on xserves. When I started the apps last year, I found and used the CoreGraphics bindings for python as described at http://developer.apple.com/graphicsimaging/pythonandquartz.html and some other places. Actually, this was the r