• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript applications as CGI applications-- does it still work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript applications as CGI applications-- does it still work?


  • Subject: Re: AppleScript applications as CGI applications-- does it still work?
  • From: Emmanuel LEVY <email@hidden>
  • Date: Thu, 28 Oct 2010 21:19:38 +0200

Hi,


I don't mind you all using acgi dispatcher, however you may want to be aware that our cgismile (available at satimage-software.com) is also a working solution.


We maintain it as it processes daily hundreds of thousands of requests on our servers.

cgismile sends the POST request as a p-list to whoever is listening to a given IP+port you provide in a config plist.

It's thought for Smile, and in Smile you can register an AppleScript handler on a given IP+port (that's the "install remote port" etc. Suite).

So you handle the request in, say:

on process_the_request(the_plist_as_string)
set the_plist to plistopen the_plist_as_string
set the_record to plistget the_plist -- now you've got a standard AS record in case you prefer that to p-lists.
-- do whatever you have to do
-- and finally build an html string with the required header Content/ type blah blah blah
-- or, return Ajax stuff, depends
return the_html
end



Emmanuel Satimage-software


On Oct 28, 2010, at 8:36 PM, Mark J. Reed wrote:

On Sat, Oct 23, 2010 at 11:31 PM, Christian Boyce
<email@hidden> wrote:
I am trying to make a CGI using AppleScript, as in Matt Neuberg's "AppleScript: The Definitive Guide" (page 379). I am not able to make it work. Has anyone made it work with Mac OS X 10.6.4? I am following Neuberg's instructions as best I can (he write about ACGI Dispatcher 2.5 and I am using 3.0, which is a little different) but no matter what I do, it doesn't work. I get this message:

You don't have permission to access /cgi-bin/echo.acgi/ on this server.

Does the "echo.acgi" file have execute permission?

If you can't get the ACGI provider working, there's nothing stopping
you from making it a plain old-fashioned CGI script with
#!/usr/bin/osascript as the interpreter.
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >AppleScript applications as CGI applications-- does it still work? (From: Christian Boyce <email@hidden>)
 >Re: AppleScript applications as CGI applications-- does it still work? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: AppleScript applications as CGI applications-- does it still work?
  • Next by Date: Adding download URL to a file's Get Info box
  • Previous by thread: Re: AppleScript applications as CGI applications-- does it still work?
  • Next by thread: Re: AppleScript applications as CGI applications
  • Index(es):
    • Date
    • Thread