• 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: "Mark J. Reed" <email@hidden>
  • Date: Wed, 23 Jan 2008 12:44:14 -0500

On Jan 23, 2008 12:39 PM, Tiago Santarosa <email@hidden> wrote:
> Hi, in PHP to automatic download file is:
>
> header('Content-Disposition: attachment; filename="' . basename($l) . '"');
> header("Content-Type: application/octet-stream");
> header("Content-Transfer-Encoding: Binary");

The PHP header() command is just print() with the added feature that
it will complain if the output stream is already past the header
portion.   There's no other magic.

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?
--
Mark J. Reed <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

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

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