Re: .acgi & form to send vars to an APP
Re: .acgi & form to send vars to an APP
- Subject: Re: .acgi & form to send vars to an APP
- From: Brian Johnson <email@hidden>
- Date: Fri, 18 Mar 2005 08:38:47 -0800 (PST)
On Fri, 18 Mar 2005, cedrik wrote:
Ive been spending the last 2 days searching for information on how to
process formdata through an .acgi (running acgi dispatcher) on to
applications. I just cant get my script to recognize any formdata !!!
I just need to do the following:
have a simple form that sends a few variables to the .acgi and then pasees
them to e.g. photoshop to create a new image based on inserted parameters.
I have NO problem with controlling photoshop via AS - all that i need is
information on how to properly recognize the vars send by the form in my
script.
Ive tried both:
on «event WWWWsdoc» path_args ¬
and
on handle CGI request pathArgs searching for searchArgs ¬
As someone suggested, check the standard addtions dictionary for help
(the <<event WWWsdoc>> and "handle CGI request" events are actually the
same event, the latter just reflects the dictionary data for the event).
As far as examples... James Sentman provides a couple of sample scripts
with acgi dispatcher. Do those work properly for you? Have you looked at
them in Script Editor? You'll find that there are more parameters than
pathargs and searchargs (like "Postargs" <g>). In addition, his utility
provides tools that help with decoding arguments/etc. These should help.
I found that there were limits to what acgi dispatcher passed properly,
which is why I wrote my own, similar, utility (peacePipe) to do this. The
peacePipe download also includes a script to echo arguments back to you.
You can find it at <http://quicksilver.caup.washington.edu/software>.
There's also a "Demo CGI script" that might help. Good luck!
- Brian Johnson, Dept of Architecture, University of Washington, Seattle
_______________________________________________
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