• 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: CGI automatic download file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGI automatic download file


  • Subject: Re: CGI automatic download file
  • From: Brian Johnson <email@hidden>
  • Date: Wed, 23 Jan 2008 10:54:02 -0800 (PST)


On Wed, 23 Jan 2008, Mark J. Reed wrote:

However, stock AppleScript has no print() function; your basic output
options are log, display dialog, and say.  This inability to directly
produce an output stream makes the whole concept of an AppleScript CGI
very odd.   How are you doing such a thing, and why?

Most Applescript CGIs conform to the MacHTTP/Webstar "sdoc" convention (iirc), in which the web server (or surrogate) executes the the CGI through the sdoc event (now codified as "Handle http request" in SE). The page is composed as a lump of text and simply "returned" to the invoking process. Management of the HTTP header isn't quite as robust as it is under PHP (less of it is accessible by convention). It's still quite possible to write applescript cgis, though apache needs some middleware to pass postargs, etc. in and get the html back).


 -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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: CGI automatic download file
      • From: "Mark J. Reed" <email@hidden>
References: 
 >CGI automatic download file (From: "Tiago Santarosa" <email@hidden>)
 >Re: CGI automatic download file (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Problem Escaping osascript Command
  • Next by Date: Re: CGI automatic download file
  • Previous by thread: Re: CGI automatic download file
  • Next by thread: Re: CGI automatic download file
  • Index(es):
    • Date
    • Thread