Re: triggering as via mysql/php?
Re: triggering as via mysql/php?
- Subject: Re: triggering as via mysql/php?
- From: Brian Johnson <email@hidden>
- Date: Mon, 6 Dec 2004 09:35:00 -0800 (PST)
On Mon, 6 Dec 2004, Michael Stoll wrote:
i wonder, if there are ways to trigger applescripts from mysql/php?
i only need an overview about these ways.
Michael,
I think you will find that this is a little more difficult than it seems
like it should be. The problem is that Applescript uses the WindowServer
to pass AEvents back and forth, and the WindowServer isn't available to
the (faceless, background) apache process or php/mysql. This is the same
problem that inhibits "standard" OS-X installs from running Applescript
CGIs.
I wrote a little "tunnel" package (called "peacePipe") that can be used to
build communications between the faceless apache environment and the
WindowServer world of a logged-in user. I use it to deploy applescript
CGIs. The path of communication goes apache -> shell script -> tunnel ->
ppSrvr_application -> applescript (and back). Given that php can execute
shell scripts, you should be able to build an 'exec' or 'passthru' command
in php that accesses your applescript (I say 'should' because I haven't
actually had to do it yet).
I don't think peacePipe is unique, so there may be other solutions to this
floating around out there, but I believe you have to get info into a
WindowServer world (or run as root) to use applescripts. Good luck.
- brian johnson, dept of architecture, university of washington, seattle
http://quicksilver.caup.washington.edu/software/peacepipe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden