[Pythonmac-SIG] Rocketship in the Dock

John Porter Simons coolcucumber at gmail.com
Wed Sep 3 18:37:38 CEST 2008


Thanks for the info on py-appscript, I think there's no real harm to running
Apache as myself.

I'm doing some pretty cool stuff with python -- I'm using Django and Orbited
together in the same mod_python instance, with Orbited not as a proxy like
people usually do. I'm getting it so my Django code can send out messages to
Orbited by direct call rather than across a socket.

Of course to do this requires a single instance, so I put Apache in worker
MPM with a single process. Supposedly not recommended but I haven't had any
problems so far.



On Wed, Sep 3, 2008 at 3:00 AM, <pythonmac-sig-request at python.org> wrote:

> Send Pythonmac-SIG mailing list submissions to
>        pythonmac-sig at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mail.python.org/mailman/listinfo/pythonmac-sig
> or, via email, send a message with subject or body 'help' to
>        pythonmac-sig-request at python.org
>
> You can reach the person managing the list at
>        pythonmac-sig-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Pythonmac-SIG digest..."
>
> Today's Topics:
>
>   1. Re: Rocketship in the Dock (has)
>   2. Re: Making setuptools compile for x86_64 (has)
>   3. Using Appscript in my application,        how to include it in the
>      bundle? (Chris Stevens)
>
>
> ---------- Forwarded message ----------
> From: has <hengist.podd at virgin.net>
> To: pythonmac-sig at python.org
> Date: Tue, 2 Sep 2008 21:51:33 +0100
> Subject: Re: [Pythonmac-SIG] Rocketship in the Dock
> John Porter Simons wrote:
>
>  I can run appscript from an interactive session and just ignore the
>> rocketship in the dock, but when I run the same script from a
>> Apache/mod_python, it hangs. Probably because Apache doesn't run as a normal
>> user so it can't get a GUI context. This is a bummer, I was able to use
>> rb-appscript from a web script, I wish I could use py-appscript...
>>
>
>
> You're correct that Apache normally runs under a restricted user which
> can't access the GUI. I'm assuming you were running your Ruby script as a
> regular user; perhaps you could use the same approach for your Python
> script? Another option might be to use remote Apple events to communicate
> with GUI apps running under a regular user. A third possibility would be to
> run Apache as a regular user. The relevant security caveats and cautions
> apply to all approaches, of course.
>
> BTW, the Dock icon is a red herring here. Both appscript implementations
> uses the same Process Manager calls. However, the Process Manager only
> 'helpfully' upgrades processes launched from an .app bundle, and while the
> Python interpreter is packaged as an .app bundle, the Ruby interpreter is
> just a regular Unix-style executable.
>
> HTH
>
> has
> --
> Control AppleScriptable applications from Python, Ruby and ObjC:
> http://appscript.sourceforge.net
>
>
>
>
> ---------- Forwarded message ----------
> From: has <hengist.podd at virgin.net>
> To: pythonmac-sig at python.org
> Date: Tue, 2 Sep 2008 21:51:39 +0100
> Subject: Re: [Pythonmac-SIG] Making setuptools compile for x86_64
> John Porter Simons wrote:
>
>  Any way to inform setuptools that I also need "x86_64" architecture? I
>> also ran into this problem while installing mod_python, dinked around with
>> the makefile flags but gave up until I discovered that the latest subversion
>> trunk has the correct flags for 64-bit.
>>
>
> See:
>
>
> http://developer.apple.com/releasenotes/OpenSource/PerlExtensionsRelNotes/
>
> (Applies to Python, etc. as well as Perl.)
>
> To build 64-bit py-appscript you'll need to use the current trunk from svn.
> (I really should push out a proper file release sometime.)
>
> HTH
>
> has
> --
> Control AppleScriptable applications from Python, Ruby and ObjC:
> http://appscript.sourceforge.net
>
>
>
>
> ---------- Forwarded message ----------
> From: "Chris Stevens" <cjs980 at uow.edu.au>
> To: pythonmac-sig at python.org
> Date: Wed, 3 Sep 2008 14:41:30 +1000
> Subject: [Pythonmac-SIG] Using Appscript in my application, how to include
> it in the bundle?
> Hi all,
>
> Sorry if this has been previously addressed. I am writing an
> application in PyObjC and need to control various windows (some system
> commands and Keynote most notably, to export slides as individual
> images) using Applescript. I have had great difficulties using the
> scripting bridge to do this, as there seems to be zero documentation
> (i figured out how to control some itunes elements, but that was it).
> Then I found Appscript, and it makes it all so easy.
>
> My question is, I had to install Appscript from the source to get it
> working on this Mac. What will someone using my application have to
> do? Will they have to install Appscript seperatly? Will I have to
> include it in the installation package somehow?
>
> Thankyou very much for any suggestions,
> Chris.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20080903/cd74e263/attachment.htm>


More information about the Pythonmac-SIG mailing list